A worked example, rendered from real sample data. Sign in to run the tool on your own input.
users
age
>=
18{
"collection": "users",
"constraints": [
{
"field": "age",
"operator": ">=",
"value": "18"
}
],
"orderBy": {
"field": "createdAt",
"direction": "desc"
},
"limit": 10,
"queryJs": "db.collection(\"users\").where(\"age\", \">=\", \"18\").orderBy(\"createdAt\", \"desc\").limit(10)"
}
Build Firestore queries with constraints and filters. Part of the DevTools Surf developer suite. Browse more tools in the Database Tools collection.