Skip to content

directives as tuple? #31

Closed
Closed
@rinnierin

Description

@rinnierin

https://github.com/graphql-python/graphql-core-next/blob/b0fa058bacf3913d0af9a75289e241f343c3842a/graphql/type/directives.py#L169

Hi, I'm new to GraphQL and have a quick question. I want to add a custom directive to the default directives including skip and included.

schema = GraphQLSchema(query, directives=specified_directives + [custom_directives])

However, the following TypeError occurs:
can only concatenate tuple (not "list") to tuple

I noticed that graph-core returns a list of these predefined directives, but graph-core-next returns a tuple. Is there a reason for this?

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