Closed bshaffer closed 3 months ago
Here is the summary of changes.
This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run
label or use the checkbox below:
Hi Brent, this is Jia from Firestore queries team. Thanks for adding the examples for PHP! The example for Datastore looks good. But for FIrestore, this example query
->where('born', '>', 1900)
->where('born', '<', 1950);
only contains inequalities on a single field born
. We need to have inequalities on different fields to be considered as a multiple inequalities query. For example, age > 20 AND height > 60
is a query with multiple inequalities.
@clairekeer1997 hi Jia. If you click the "Files Changed", you can see the actual sample. What you're referring to is not part of this sample, which looks like this:
$chainedQuery = $collection
->where('age', '>', 35)
->where('height', '>', 60)
->where('height', '<', 70);
Sorry I read on the wrong one. The updated example looks good to me.
query_filter_compound_multi_ineq
query_filter_range_invalid
andquery_order_field_invalid