We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm wondering if it's possible, and if so how to query a service using feathers-sequelize where the where clause is a related model.
For example:
service.find('model').find({ query: { relatedModel: { id: 'some-id' } } );
This would pair with if you are including extra models on the server side to be joined and returned the front-end.
The text was updated successfully, but these errors were encountered:
Found the answer:
service.find('model').find({ query: { '$relatedModel.id$': 'some-id' } } );
Sorry, something went wrong.
No branches or pull requests
I'm wondering if it's possible, and if so how to query a service using feathers-sequelize where the where clause is a related model.
For example:
This would pair with if you are including extra models on the server side to be joined and returned the front-end.
The text was updated successfully, but these errors were encountered: