コンテンツにスキップ
per page, with , order by , clip by
Results of 1 - 1 of about 1 for GraphQLRouter (0.000 sec.)
GraphQL 9414
GraphQL Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . As FastAPI is based on the ASGI standard, it's very easy to integrate any GraphQL library also compatible w ... ntegrate Strawberry with FastAPI: Python 3.8+ 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 () app . include_router ( graphql_app , prefix = "/graphql" ) You can learn more about Strawberry ...
https://man.mtool.work/fastapi/0.115/how-to/graphql/
PREV 1 NEXT