Join Slack
Powered by
In my firestore users collection i have a boolean ...
# community-help
r
Rude Buster
07/12/2022, 5:13 PM
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
Jason Bosco
07/12/2022, 5:14 PM
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
Jason Bosco
07/12/2022, 5:14 PM
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
Rude Buster
07/12/2022, 6:22 PM
Awesome, that worked. Thank you!
Open in Slack
Previous
Next