- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for GraphQLRouter (0.07 seconds)
-
docs_src/graphql_/tutorial001_py310.py
import strawberry from fastapi import FastAPI from strawberry.fastapi import GraphQLRouter @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 = GraphQLRouter(schema) app = FastAPI()Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 424 bytes - Click Count (0)