findOne()
Quickly find an entity by passing key/value pairs. You can optionally pass an ancestors array or a namespace.
@Returns an gstore entity instance of the Model.
This method accepts the following arguments:
options
The options argument accepts the following properties:
cache (default: the "global" cache configuration) "true" = read from the cache and prime the cache with the query response.
ttl (default: the global
cache.ttl.queries
value) Custom TTL value for the cache. For multi-store it can be an Object of TTL values.readAll (default: false). Return all the properties, even the ones marked as
read: false
on the Schema.
Example:
Last updated