Skip to content

Commit

Permalink
migrated to GraphQL
Browse files Browse the repository at this point in the history
  • Loading branch information
borolepratik committed Dec 19, 2023
1 parent 79e2130 commit 3cb746d
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 83 deletions.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
python 3.12.1
11 changes: 9 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
from typing import Union

from typing import List
from fastapi import FastAPI
from strawberry.asgi import GraphQL

from schema import schema


graphql_app = GraphQL(schema)

app = FastAPI()
app.add_route("/graphql", graphql_app)
app.add_websocket_route("/graphql", graphql_app)


@app.get("/")
Expand Down
Loading

0 comments on commit 3cb746d

Please sign in to comment.