Skip to content
Discussion options

You must be logged in to vote

After having a good sleep, I came to realization that with just joins tables while I thought it will filter query by having or not having described relationship.

https://orm.drizzle.team/docs/rqb#include-relations

Included in collections [
  { id: 1, name: 'item 1', collections: [ [Object] ] },
  { id: 2, name: 'item 2', collections: [ [Object] ] },
  { id: 3, name: 'item 3', collections: [] }
]
Not included in collections [
  { id: 1, name: 'item 1' },
  { id: 2, name: 'item 2' },
  { id: 3, name: 'item 3' }
]
Included in specific collections [
  { id: 1, name: 'item 1', collections: [ [Object] ] },
  { id: 2, name: 'item 2', collections: [] },
  { id: 3, name: 'item 3', collections: [] …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by brachkow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant