Skip to content
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

@relationship directive lacks information about the possible field usages , e.g. nestedOperations #156

Open
andreloeffelmann opened this issue Jun 12, 2024 · 1 comment

Comments

@andreloeffelmann
Copy link

The docs here does not inform the reader about the possible fields of the @relationship directive.
In v4 this was solved way better, see here

Either way: it took me hours to figure out why the value CONNECT_OR_CREATE of the nestedOperations field was not working within my schema.
It would be VERY HELPFUL if you pointed out in the docs, that CONNECT_OR_CREATE only affects the generated schema if the referenced type has at least one field with a @unique directive. After trial-and-erroring that out, it is quite clear why this directive is required. But it is not by simply reading the docs ;-)

@Liam-Doodson
Copy link
Contributor

Liam-Doodson commented Jun 19, 2024

Hey @andreloeffelmann! Thanks for raising this!

Looks like we do mention this requirement in the documentation for create inputs here but seem to have missed it from the update documentation here

I do agree that a note about this requirement would also be useful here to avoid confusion

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

No branches or pull requests

2 participants