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

Model (PersistedModel) should implement all DAO methods #57

Open
bajtos opened this issue Dec 12, 2014 · 6 comments
Open

Model (PersistedModel) should implement all DAO methods #57

bajtos opened this issue Dec 12, 2014 · 6 comments

Comments

@bajtos
Copy link
Contributor

bajtos commented Dec 12, 2014

At the moment, the ModelRepository class implements only a subset of methods provided by PersistedModel on the server.

Most notably it is not possible to execute find with a custom filter.

We should improve ModelRepository and include all built-in methods OOTB.

Related: https://groups.google.com/forum/#!topic/loopbackjs/1xHq5vFRayk

@jlgallego
Copy link

I am facing the same problem. I'd like that implemented too. It is possible to execute find filtering on just one field though, but I can not seem to find a proper way of expressing a filter on more than one field, joined with AND, for example.

@bajtos
Copy link
Contributor Author

bajtos commented Apr 16, 2015

@jlgallego would you mind contributing this improvement yourself?

@ageneau
Copy link

ageneau commented Apr 16, 2015

I have these methods implemented in the "fix_flatten" branch in my repository (https://github.com/ageneau/loopback-sdk-android). I haven't had time to rebase it on the latest changes yet. The "find" and "findOne" methods now take optional parameters.

@jlgallego
Copy link

Unfortunately, I don't feel I have the time for it right now. Anyway I think @ageneau 's work is worth a look & test.

@afaucogney
Copy link

Does anyone @bajtos or @jlgallego had a look on @ageneau job ? more an more people request this feature that decrease Loopback capabilities by this lack. I'm volunteer to help, but unfortunately not skilled enough to just do it.

@Rajan
Copy link

Rajan commented Jun 10, 2015

@afaucogney I'm using @ageneau 's find() method and it works with 'filter'. If you wish to get started with solving this, I recommend to debug RestAdapter and com.strongloop.android.remoting.adapters.RestAdapter class. It constructs URL in the end which gets posted to the server. I'm happy to help/contribute.

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