DEV Community

Azeem Haider
Azeem Haider

Posted on

1 2

FireO - Querying and filtering Data in Firestore

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()
Enter fullscreen mode Exit fullscreen mode

The following query returns all the capital cities

cities = City.collection.filter('capital', '==', True).fetch()
Enter fullscreen mode Exit fullscreen mode

Read More About FireO Querying and Filtering

Give some good feedback and stars to FireO

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay