Skip to content

Support adding types to GraphQLSchema #154

Closed
@alexchamberlain

Description

@alexchamberlain

I have a use case where part of the schema is specified using the SDL, and part of the schema is generated in code. In particular, interfaces are in SDL, while the concrete types are in code. To correctly modify the GraphQLSchema object that is generated by parsing the initial schema, you need to:

  • add the type concrete type to type_map
  • add the type to _implementations_map appropriately
  • reset _sub_type_map

Would you be open to adding an add_type method or similar that takes care of all of the above?

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