Closed maztak closed 3 years ago
Hi @maztak
You are not able to query on values that do not exist unfortunately for Firestore. If the value does not exist it is not indexed and can not be queried.
You can use the bulk update feature to set the relevant status on your entries within Flamelink.
The ignoreUndefinedProperties
only removes undefined values from your queries as opposed to failing the API request with an error. So it basically sanitizes the queries for you.
Yeah. Thanks reply. So anyway we have to bulk update each time when we added contents,right?
I think if flamelink add stasu
field as publish
, we can get data with filter property smooth.
I’m glad to you to consider. Best.
iPhoneから送信
2021/06/15 18:11、De Wet van der Merwe @.***>のメール:
Hi @maztak
You are not able to query on values that do not exist unfortunately for Firestore. If the value does not exist it is not indexed and can not be queried.
You can use the bulk update feature to set the relevant status on your entries within Flamelink.
The ignoreUndefinedProperties only removes undefined values from your queries as opposed to failing the API request with an error. So it basically sanitizes the queries for you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
If you are adding the content via the CMS you can simply choose the status when adding it.
By flamelink JavaScript SDK, we can't get documents that only published. I discussed with flamelink support team, and I try this code but I got null.
so I use this code
Note
To use the undefined filter, we have to set
ignoreUndefinedProperties
to true.