Skip to content

Nested queries with array object not working : memory-connector #2582

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

Closed
pponugo opened this issue Aug 4, 2016 · 2 comments
Closed

Nested queries with array object not working : memory-connector #2582

pponugo opened this issue Aug 4, 2016 · 2 comments
Labels

Comments

@pponugo
Copy link

pponugo commented Aug 4, 2016

When using memory-connector, some of the nested queries are not working.

For the below sample data, below are working and non working nested query examples.

Working queries

  • /api/customers?filter[where][emails.address]=[email protected]
  • /api/customers?filter[where][customdata.obj.value]=DC893708

Not Working queries

  • /api/customers?filter[where][customdata.list.value]=67925088689

Similar issues, #517, #953
Forked repository to reproduce the issue: https://github.com/pponugo/loopback-sandbox

    {
      name: 'John Lennon',
      address: {
        street: '123 A St',
        city: 'San Jose',
        state: 'CA',
        zipCode: '95131',
        tags: [
            { tag: 'business' },
            { tag: 'rent' },
        ],
      },
      friends: [
        { name: 'Paul McCartney' },
        { name: 'George Harrison' },
        { name: 'Ringo Starr' },
      ],
      children: ['Sean', 'Julian'],
    }
@pponugo
Copy link
Author

pponugo commented Aug 4, 2016

Fixed and created pull request. loopbackio/loopback-datasource-juggler#1027

@bajtos
Copy link
Member

bajtos commented Sep 7, 2016

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

No branches or pull requests

3 participants