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

Make the direction of the @relationship directive an enum #150

Closed
Andy2003 opened this issue Mar 5, 2021 · 1 comment
Closed

Make the direction of the @relationship directive an enum #150

Andy2003 opened this issue Mar 5, 2021 · 1 comment

Comments

@Andy2003
Copy link
Contributor

Andy2003 commented Mar 5, 2021

In the examples I saw that the @relationship directive is used with a string value as the directions' argument.
I would suggest to make this field an enum value, so the user knows the possible values.

directive @relationship(type:String!, direction: RelationDirection = OUT) on FIELD_DEFINITION

enum RelationDirection {
  IN
  OUT
}
@darrellwarde
Copy link
Contributor

Another good idea, but closed for tidiness as we would address this at the same time as addressing neo4j/graphql-tracker-temp#13.

@darrellwarde darrellwarde transferred this issue from another repository Apr 8, 2021
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