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

angular-data query language #2

Closed
jmdobry opened this issue Jan 6, 2014 · 3 comments
Closed

angular-data query language #2

jmdobry opened this issue Jan 6, 2014 · 3 comments

Comments

@jmdobry
Copy link
Member

jmdobry commented Jan 6, 2014

The angular-data query language has to do with the filter and findAll methods. The same query object should be able to be passed into filter and findAll and they should return the same result. filter synchronously returns data from the store. findAll asynchronously retrieves data from the server.

The query language used by angular-data needs to be:

  • simple
  • extendable
  • adaptable

Devs should be able to write query translators that translate angular-data's query language to the query format supported by their app's REST API. Normally the query object would get serialized to the search query in the request parameters. Devs should have the option to transform the url to something their REST API before the request is sent.

@jmdobry
Copy link
Member Author

jmdobry commented Jan 15, 2014

Perhaps a where clause system like what's described here, albeit smaller.

See also http://dev.mysql.com/doc/refman/5.0/en/select.html

@jmdobry
Copy link
Member Author

jmdobry commented Jan 17, 2014

Finalize in 0.6.0

@jmdobry
Copy link
Member Author

jmdobry commented Jan 17, 2014

Added pluggable filters for the "where" clause of a query. Angular-data's "query language" will remain small and simple.
Developers can provide their own more robust filters for more powerful queries.

@jmdobry jmdobry closed this as completed Jan 17, 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