Implementing RunQuery API programmatically
Now, let’s invoke this Firestore RunQuery API programmatically by implementing this in a standalone application that is deployed serverlessly on Google Cloud. After reading Chapter 4, Setting Up a Fully Managed RDBMS, you should be familiar with the steps involved in setting up Cloud Functions. If not, go to the Create an application with the cloud database section in Chapter 4, Setting Up a Fully Managed RDBMS and follow the instructions to create a Java Cloud Functions application.
Replace the pom.xml
dependencies section with the following dependencies to include the libraries required for this implementation:
<dependency> Â Â Â Â Â <groupId>com.google.cloud.functions</groupId> Â Â Â Â Â <artifactId>functions-framework-api</artifactId> Â Â Â Â Â <version>1.0.4</version> Â Â Â </dependency> <dependency>...