what's the difference between find, findAll and findQuery in ember-data -


what difference between find, findall , findquery in ember-data?

find convenience wrapper findall, findquery , findbyid.

  • findall return records of specific type (this trigger request server) all same uses cache, if have records in store, no request made
  • findquery return subset server
  • findbyid returns single object

https://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/store.js#l431


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -