DEV Community

loading...

FireO - Querying and filtering Data in Firestore

axeemhaider profile image Azeem Haider ・1 min read

FireO provides powerful query functionality for specifying which documents you want to retrieve from a collection. These queries can also be used with either get() or fetch()

Simple Queries

The following query returns all cities with state CA

cities = City.collection.filter('state', '==', 'CA').fetch()

The following query returns all the capital cities

cities = City.collection.filter('capital', '==', True).fetch()

Read More About FireO Querying and Filtering

Give some good feedback and stars to FireO

Discussion (0)

pic
Editor guide