In my firestore users collection i have a boolean ...
# community-help
r
In my firestore users collection i have a boolean profileFinished, how can i set my typesense schema to return only when that boolean is true?
j
You want to set that field as
type: boolean
in the schema. And then when doing a search, you want to set
filter_by: profileFinished:true
If you don't want users to change this, you can also embed this search parameter in a scoped API key and use that api key to make the search request
r
Awesome, that worked. Thank you!