Useful properties and methods on result objects
Query result objects have these useful properties:
- Empty
- Indicates whether a query failed to fetch any matching items
- Count
- Returns the number of items in the result
- AtMostOneRow
- Specifies that you want the query to return a result only if a single item matches the
query
predicates
var uniquePerson = query.select().AtMostOneRow - FirstResult
- Provides the first item in a result without iterating the result object
- getCountLimitedBy
- Indicates whether the result contains more items than you can use
