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

fix: Create mutation introspection #2881

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/request/graphql/schema/descriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ An optional value that specifies as to whether deleted documents may be
returned. This argument will propagate down through any child selects/joins.
`
createDocumentDescription string = `
Creates a single document of this type using the data provided.
Creates one or more documents of this type using the data provided.
`
updateDocumentsDescription string = `
Updates documents in this collection using the data provided. Only documents
Expand Down
2 changes: 1 addition & 1 deletion internal/request/graphql/schema/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -1057,7 +1057,7 @@ func (g *Generator) GenerateMutationInputForGQLType(obj *gql.Object) ([]*gql.Fie
create := &gql.Field{
Name: "create_" + obj.Name(),
Description: createDocumentDescription,
Type: obj,
Type: gql.NewList(obj),
Args: gql.FieldConfigArgument{
request.Input: schemaTypes.NewArgConfig(mutationInput, "Create a "+obj.Name()+" document"),
request.Inputs: schemaTypes.NewArgConfig(gql.NewList(gql.NewNonNull(mutationInput)),
Expand Down
Loading