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

Feature request: Add methods for getting all entities of a certain type from state #76

Open
GuyPaddock opened this issue Jan 4, 2020 · 0 comments

Comments

@GuyPaddock
Copy link

GuyPaddock commented Jan 4, 2020

The documentation indicates that state.bees should be considered internal/private and that data should be accessed from it via selector methods. In our use case, we need an entity of a specific type but don't know the ID (i.e. it's the "current user" resource, which we get via an endpoint called /jsonapi/me), so we need the ability to get all of the "current_user" entities that have been retrieved.

Unfortunately, the getEntity() method requires both a type and ID in the handle. So, for now, I'm having to write my own selector method to pull the entity directly out of state.bees.entities.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant