question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Query by Association

See original GitHub issue

It seems like the notation $nested.query$ is no longer working? I’m getting an error in the filter-query adapter commons.

For example:

app.service('my/service').find({
  query: {
    '$related.table$': 4
  }
}

Has the API changed for this type of query now?

Thanks.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
RickEyrecommented, Aug 25, 2021

Awesome, thank you.

0reactions
DaddyWarbuckscommented, Aug 24, 2021

You have to whitelist the $statuses.type$ parameter in the service options.

const options = {
    Model,
    paginate,
    whitelist: ['$statuses.type$']
  };
Read more comments on GitHub >

github_iconTop Results From Across the Web

QUERY ASSOCIATION - IBM
Use this command to display information about which client nodes are associated with one or more schedules. Client nodes associated with a schedule...
Read more >
Association Model Query Examples | Microsoft Learn
Learn how to create these kinds of queries for models that are based on the Microsoft Association Rules algorithm.
Read more >
How to query for an association of an association in Rails with ...
I'm trying to get all of the tags associated with all recipes of an organization. I want to do something like, Organization.find(1).recipes.tags ...
Read more >
Querying has_many Associations | Online Video Tutorial by ...
In this lesson, we're going to learn advanced techniques for querying our has_many associations. Our example's domain model.
Read more >
Active Record Associations - Ruby on Rails Guides
Active Record AssociationsThis guide covers the association features of Active ... the result of the most recent query available for further operations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found