Replies: 1 comment
-
Hi, please tell me, how your idea is different from what is already possible - I fail to understand what you are after: from pathlib import Path
from ariadne import (
ObjectType,
load_schema_from_path,
make_executable_schema,
)
from ariadne.asgi import GraphQL
BASE_DIR = Path(__file__).parent
my_type = ObjectType("MyType")
@my_type.resolve("my_field")
def resolve(obj, info, ...): # providing the method to resolve a field of a type
...
app = GraphQL(
make_executable_schema(
load_schema_from_path(BASE_DIR / "schema.graphql"), # providing the schema file, server is built from this schema
)
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be great to generate a server from a schema file and just override the necessary methods
Beta Was this translation helpful? Give feedback.
All reactions