mirror of
https://github.com/rjNemo/graphql_python_template
synced 2026-06-06 02:26:47 +00:00
11 lines
303 B
Python
11 lines
303 B
Python
import graphene
|
|
from fastapi import FastAPI
|
|
from starlette.graphql import GraphQLApp
|
|
|
|
from app.schema.mutations.mutations import Mutations
|
|
from app.schema.queries.todo import TodoQuery
|
|
|
|
app = FastAPI()
|
|
app.add_route(
|
|
"/",
|
|
GraphQLApp(schema=graphene.Schema(query=TodoQuery, mutation=Mutations)))
|