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

Collection helpers #1

Closed
jbaxleyiii opened this issue Feb 26, 2016 · 3 comments
Closed

Collection helpers #1

jbaxleyiii opened this issue Feb 26, 2016 · 3 comments

Comments

@jbaxleyiii
Copy link
Contributor

One of the things I have missed most when using redux as my client side data store, has been the lack of query / sort / filter / etc operations that we had with Mongo.Collection.

Since part of the GQL spec will require id, could we replicate the Mongo collection methods for easy manipulation / fetching of data from the store to use in the UI?

@stubailo
Copy link
Contributor

Is lodash not enough? Like _.findWhere(items, { stuff: "value"}). That isn't much more complex than items.find({stuff: "value"}) right?

@jbaxleyiii
Copy link
Contributor Author

@stubailo I was thinking more around nested keys. But after playing around with lodash more, its all I need! Thanks for the advice!

@stubailo
Copy link
Contributor

Cool, so hopefully I can get an initial version of this client going this week, and then we can see if it meets your needs and we can collaborate, does that sound good?

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

No branches or pull requests

2 participants