-
Notifications
You must be signed in to change notification settings - Fork 128
docs: filters based on relations #220
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
base: main
Are you sure you want to change the base?
docs: filters based on relations #220
Conversation
Expanded the filtering documentation to clearly distinguish between `join` (for filtering by related fields) and `with` (for embedding related data). Added practical examples for each combination of parameters and updated POST endpoint usage.
|
This one might need to only use |
| const { data } = await api.data.readMany("posts", { | ||
| where: { | ||
| "$or": [ | ||
| { "author.department.name": "Engineering" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if this would work, have you tested it? I think you can't merge that deep, that's what the with property is for
|
@cameronapak thanks a lot! Have you tested the queries added? you could quickly spin up a testing instance to create the schema and test the queries by running: npx bknd run --memoryAnd then use the Also, the docs have been migrated to fumadocs, could you merge main or should I do this? |
Based on this Discord discussion about filters based on relations, Kiro IDE and I partnered to update the docs.