Entity Queries
The root of an entity query targets an entity index. Therefore, any properties you may want to query should be indexed. Use case-insensitive indexing to yield greater search results.
Entity Patterns
An entity query follows one of these patterns:
- EntityType Property value
- EntityType Property Operator value
- EntityType Property value condition Property value
- EntityType Property Operator value condition Property Operator value
- EntityType value
- Property value
- Property Operator value
- EntityType
- value
Query Operators
The following operators are valid for entity queries.
Operator | Property Type |
---|---|
< | Numeric or temporal |
<= | Numeric or temporal |
> | Numeric or temporal |
>= | Numeric or temporal |
Is Not | String, Numeric or temporal |
Contains | String |
Does Not Contain | String |
Starts With | String |
Does Not Start With | String |
Ends With | String |
Does Not Start With | String |
Matches regular expression | String |
Conditions
Condition operators act on expressions that evaluate to True or False and on Boolean properties in entity queries.
Operator | Condition |
---|---|
&& | And |
|| | Or |
Is Not | Not |