Skip to content

it is possible to have a mutation with nested inputs? #326

Open
@LucasLopesr

Description

@LucasLopesr

I get the following exception:

com.coxautodev.graphql.tools.SchemaError: Expected type 'VigenciaInput' to be a GraphQLInputType, but it wasn't! Was a type only allowed for object types incorrectly used as an input type, or vice versa?

example schema:

type Mutation {
    createFoo(input: FooInput): String!
}

input FooInput {
    bar: BarInput!
}

input BarInput {
    message: String!
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions