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
func (g *GraphQL) Query_users(ctx context.Context) ([]User, error)
func (g *GraphQL) Query_users(ctx context.Context) ([]*User, error)
type Query { users: [Users] }
Before #191 this worked correctly. However, after that PR was merged, it always generates the optional form when returning a slice.
I would expect
type Query { users: [Users]! }
to return
while
should return:
The text was updated successfully, but these errors were encountered:
Did you try a required list of required elements:
type Query { user: [Users!]! }
What you have [Users]! is a required list of nullable elements
[Users]!
read more
Sorry, something went wrong.
No branches or pull requests
Expected Behaviour
Actual Behavior
Minimal graphql.schema and models to reproduce
Notes:
Before #191 this worked correctly. However, after that PR was merged, it always generates the optional form when returning a slice.
I would expect
to return
while
should return:
The text was updated successfully, but these errors were encountered: