Skip to content

GraphQL types models #13

@rafalp

Description

@rafalp

Current implementation of make_executable_schema knows how to work with current GraphQL types defined by library (and vanilla approach implemented in Ariadne proper).

To support different approaches for schema definitions (and mixing them), make_executable_schema should be changed to use some sort of contract with types to retrieve their requirements and GraphQL types definitions.

Proposed contract is for make_executable_schema to look for __get_graphql_model__ methods on types passed to it. This method would be expected to yield an instance of GraphQLModel sub-class that make_executable_schema would know how to construct GraphQL type from.

Metadata

Metadata

Assignees

Labels

next-apiSupport for both code and schema first approachesprio: highHigh priority

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions