Hello, in this tutorial, I will show you how to get documents from a collection.
To Get Documents from a collection, use the Get Collection node. It has 4 pins:
1 for the path to the collection
Queries
To build the query, start with the Begin Get Collection Query node.
Then add queries using any of these nodes:
Adding the Callbacks
Basically, you will need to use these nodes:
Attaching a listener to the collection
You can also attach a listener to a collection and listen to any changes made to it by using the “Listen To Collection” node. This way, you’ll be able to update information in real-time every time a document is added, removed, or modified.
It has 5 pins
The On Documents Added callback gets called when a document is added to the collection and it fits the queries you added.