Skip to content

Unable to combine Mutations in schema #501

@robinelvin

Description

@robinelvin

Combining query classes works but combining mutation classes does not appear to work.

Based on @yfilali's comment on #408 -

class Query(App1Query, App2Query, graphene.ObjectType):
    pass

class Mutations(App1Mutations, App2Mutations, graphene.ObjectType):
    pass


schema = graphene.Schema(query=Query, mutation=Mutations)

Server responds with:

Mutations fields must be a mapping (dict / OrderedDict) with field names as keys or a function which returns such a mapping.

Both

schema = graphene.Schema(query=Query, mutation=App1Mutations)

and

schema = graphene.Schema(query=Query, mutation=App2Mutations)

work as expected.

Note: I am not trying to nest the mutations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions