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

Generates invalid graphql for self-referential messages. #4

Open
tmc opened this issue Sep 19, 2019 · 1 comment
Open

Generates invalid graphql for self-referential messages. #4

tmc opened this issue Sep 19, 2019 · 1 comment

Comments

@tmc
Copy link

tmc commented Sep 19, 2019

message SelfRef {
  SelfRef self_ref = 1;
}

generates

input SelfRef {
	self_ref: SelfRef!
}

which graphql-schema-linter flags as: Cannot reference Input Object "SelfRef" within itself through a series of non-null fields: "self_ref". invalid-graphql-schema

@marwan-at-work
Copy link
Owner

@tmc are self referential inputs in GraphQL not allowed? Do you see a way around it?

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