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
Is there an example of a self-referential table?
example: I'm implementing a tree of nodes.
The node table has a nullable parent_id column.
node
parent_id
How would I implement trees of arbitrary depth?
Currently, every node is just referencing itself.
{ "otherStuff": "excludedForBrevity", "parent_id": { "type": "same_as", "ref": "org_unit.content.id" } }
Is there a way to change the ref so it's not referencing its own id column?
ref
id
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an example of a self-referential table?
example: I'm implementing a tree of nodes.
The
node
table has a nullableparent_id
column.How would I implement trees of arbitrary depth?
Currently, every node is just referencing itself.
Is there a way to change the
ref
so it's not referencing its ownid
column?The text was updated successfully, but these errors were encountered: