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
@primary
For example, this SDL works:
type User { boss: User @primary minions: [User] }
However, this returns an error:
type User { boss: User minions: [User] }
relation missing field. Object: User, RelationName: user_user. Stack: /home/andy/Projects/Source/defradb/internal/db/errors.go:620 (0x1c13b7d) NewErrRelationMissingField: return errors.New( /home/andy/Projects/Source/defradb/internal/db/collection.go:760 (0x1bfc8d8) validateSecondaryFieldsPairUp: return NewErrRelationMissingField(underlying, field.RelationName.Value()) /home/andy/Projects/Source/defradb/internal/db/collection.go:683 (0x1bf7e5b)
Note: one-ones are fine, as they have to be declared with an @primary directive on one side anyway.
The text was updated successfully, but these errors were encountered:
Bizarrely, the below appears to work fine:
type User { name: User dogs: [User] }
So does:
type User { boss: User aminions: [User] }
Suggesting that the field name (and thus field order) may have an impact on this issue
Sorry, something went wrong.
fix: Support one-many self joins without primary directive (#2799)
aaaa9d9
## Relevant issue(s) Resolves #2620 ## Description Support one-many self joins without primary directive.
AndrewSisley
Successfully merging a pull request may close this issue.
For example, this SDL works:
However, this returns an error:
Note: one-ones are fine, as they have to be declared with an
@primary
directive on one side anyway.The text was updated successfully, but these errors were encountered: