mirror of
https://github.com/rjNemo/federation
synced 2026-06-06 02:06:39 +00:00
11 lines
343 B
Python
11 lines
343 B
Python
import uvicorn
|
|
from ariadne.asgi import GraphQL
|
|
from ariadne.contrib.federation import make_federated_schema
|
|
|
|
from review.schema import query, type_defs, product, review, user
|
|
|
|
schema = make_federated_schema(type_defs, query, review, user, product)
|
|
app = GraphQL(schema, debug=True)
|
|
|
|
if __name__ == "__main__":
|
|
uvicorn.run(app, port=5002)
|