diff --git a/README.md b/README.md index a0ccb98..17a267f 100644 --- a/README.md +++ b/README.md @@ -278,16 +278,19 @@ export default Ember.Route.extend({ model() { return this.store.query('smasher', { filter: { - name: 'Mario' - sort: [ - { debut: 'desc' } - ] - } + name: 'Mario', + debut: { '$gte': null } + }, + sort: [ + { debut: 'desc' } + ] }) } }); ``` +Note that this query would require a custom index including both fields `data.name` and `data.debut`. Any field in `sort` must also be included in `filter`. Only `$eq`, `$gt`, `$gte`, `$lt`, and `$lte` can be used when matching a custom index. + ### store.queryRecord(model, options) Find one document where doc.name === 'Mario'