What is the difference between find, findAll and findQuery in ember-data?
find
is a convenience wrapper for findAll
, findQuery
and findById
.
findAll
will return all the records of a specific type (this will trigger a request to the server) all
is basically the same but uses the cache, so if you have records in your store, no request will be madefindQuery
is to return a subset from your serverfindById
returns a single objecthttps://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/store.js#L431
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With