Skip to content

Conversation

@cameronapak
Copy link
Contributor

@cameronapak cameronapak commented Jul 23, 2025

Based on this Discord discussion about filters based on relations, Kiro IDE and I partnered to update the docs.

@cameronapak cameronapak changed the title cp/docs filters based on relations WIP: cp/docs filters based on relations Jul 23, 2025
@cameronapak cameronapak changed the title WIP: cp/docs filters based on relations cp/docs filters based on relations Jul 23, 2025
@cameronapak cameronapak changed the title cp/docs filters based on relations docs: filters based on relations Jul 23, 2025
@cameronapak
Copy link
Contributor Author

This one might need to only use npm and rm the bun.lock file per #185 (comment)

const { data } = await api.data.readMany("posts", {
where: {
"$or": [
{ "author.department.name": "Engineering" },
Copy link
Contributor

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

@dswbx
Copy link
Contributor

dswbx commented Aug 3, 2025

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

And then use the POST /api/data/<entity>/query endpoint to use the JSON/object-style query used in the SDK.

Also, the docs have been migrated to fumadocs, could you merge main or should I do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants