Skip to content

Model (PersistedModel) should implement all DAO methods #57

Open

Description

@bajtos

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

Activity

  1. jlgallego commented on Apr 16, 2015

    @jlgallego

    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.

  2. bajtos commented on Apr 16, 2015

    @bajtos
    ContributorAuthor

    @jlgallego would you mind contributing this improvement yourself?

  3. ageneau commented on Apr 16, 2015

    @ageneau

    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.

  4. jlgallego commented on May 7, 2015

    @jlgallego

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

  5. afaucogney commented on Jun 10, 2015

    @afaucogney

    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.

  6. Rajan commented on Jun 10, 2015

    @Rajan

    @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.

  7. ghost removed on Sep 3, 2015
  8. ghost added on Sep 3, 2015
  9. ghost removed on Sep 8, 2015
  10. ghost added on Sep 8, 2015
  11. self-assigned this
    on Nov 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions