question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should collectionAction be on store?

See original GitHub issue

First, 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:closed
  • Created 8 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

9reactions
Turbo87commented, Feb 11, 2016

I think the proper API for this would be something like:

this.store.modelFor('person').autocomplete({q: 'abc'})
0reactions
bj-mcduckcommented, Oct 11, 2018

any movement on this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found