- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for Garrick (0.2 sec)
-
docs_src/graphql/tutorial001.py
from strawberry.asgi import GraphQL @strawberry.type class User: name: str age: int @strawberry.type class Query: @strawberry.field def user(self) -> User: return User(name="Patrick", age=100) schema = strawberry.Schema(query=Query) graphql_app = GraphQL(schema) app = FastAPI() app.add_route("/graphql", graphql_app)
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Sun Oct 03 18:00:28 GMT 2021 - 446 bytes - Viewed (0)