Should collectionAction be on store?
See original GitHub issueFirst, big thanks for this excellent and much-needed add-on.
Currently you need to call a collection action on an instance:
this.store.createRecord('person').autocomplete({q: 'abc'})
Since collection actions don’t pertain to a single resource, this reads a little odd to me. I think the ‘ember data way’ might be more like:
this.store.autocomplete('person', {q: 'abc'})
It’s not really a problem, but I’d love to see this repo in ember-data itself one day, and matching that API maybe greases the wheels to provide a more conventional API.
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
ember.js - What is the difference between memberAction and ...
A member action happens on a specific resource and a collection action happens on the whole collection. For instance, POST /users/sync is a ......
Read more >Debt Collection FAQs - Federal Trade Commission
Debt Collection FAQs · What types of debts are covered under the law? · Can debt collectors contact me at any time or...
Read more >Remove product from collection - Shopify Help Center
The Remove product from collection action can be used in workflows that start with the following triggers: Inventory quantity changed · Product added...
Read more >Star Wars Retro Collection Action Figure Set by Hasbro
Shop the Star Wars Retro Collection Action Figure Set by Hasbro at shopDisney.com, and discover the magic at Disney's official online shopping destination....
Read more >Star Wars The Mandalorian Vintage Collection Action Figure ...
Featuring premium detail and design inspired by The Mandalorian live-action Disney Plus series, this collectible Star Wars The Vintage Collection 3.75-inch- ...
Read more >Top Related Medium Post
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the proper API for this would be something like:
any movement on this?