Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "useClass" option to inject, find, findAll, create #145

Closed
jmdobry opened this issue Sep 9, 2014 · 0 comments
Closed

Add "useClass" option to inject, find, findAll, create #145

jmdobry opened this issue Sep 9, 2014 · 0 comments
Assignees
Milestone

Comments

@jmdobry
Copy link
Member

jmdobry commented Sep 9, 2014

Right now useClass defaults to true, but it set at the resource/global level.

Adding the useClass option to these methods gives greater control, for example:

  • DS.find - useClass: true - create instance from attrs, inject into store and return instance
  • DS.find - useClass: true, cacheResponse: false - create instance from attrs and return instance, do not inject into store
  • DS.find - useClass: false - inject raw attrs into store and return raw attrs
  • DS.find - useClass: false, cacheResponse: false - return raw attrs, do not inject into store
@jmdobry jmdobry self-assigned this Sep 9, 2014
@jmdobry jmdobry modified the milestone: 1.0.0-rc.2 Sep 11, 2014
@jmdobry jmdobry changed the title Add "useClass" option to inject, find, findAll, save, update, updateAll Add "useClass" option to inject, find, findAll, create Sep 13, 2014
@jmdobry jmdobry added in progress and removed ready labels Sep 13, 2014
jmdobry added a commit to js-data/js-data that referenced this issue Sep 13, 2014
@jmdobry jmdobry added done and removed in progress labels Sep 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant