tutorial001_py39.py — fastapi Source File
Architecture documentation for tutorial001_py39.py, a python file in the fastapi codebase. 3 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 8946861d_c6ff_4007_e36b_5e98f0d2e40c["tutorial001_py39.py"] 66f81310_1c5f_6137_8270_772430e191b3["strawberry"] 8946861d_c6ff_4007_e36b_5e98f0d2e40c --> 66f81310_1c5f_6137_8270_772430e191b3 534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"] 8946861d_c6ff_4007_e36b_5e98f0d2e40c --> 534f6e44_61b8_3c38_8b89_6934a6df9802 e612fb61_80d9_f27a_95dd_876bd40f8cc3["strawberry.fastapi"] 8946861d_c6ff_4007_e36b_5e98f0d2e40c --> e612fb61_80d9_f27a_95dd_876bd40f8cc3 68fab5bf_d288_818d_ce80_472dd26a29a4["test_tutorial001.py"] 68fab5bf_d288_818d_ce80_472dd26a29a4 --> 8946861d_c6ff_4007_e36b_5e98f0d2e40c style 8946861d_c6ff_4007_e36b_5e98f0d2e40c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
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")
Domain
Subdomains
Dependencies
- __init__.py
- strawberry
- strawberry.fastapi
Source
Frequently Asked Questions
What does tutorial001_py39.py do?
tutorial001_py39.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Routing subdomain.
What does tutorial001_py39.py depend on?
tutorial001_py39.py imports 3 module(s): __init__.py, strawberry, strawberry.fastapi.
What files import tutorial001_py39.py?
tutorial001_py39.py is imported by 1 file(s): test_tutorial001.py.
Where is tutorial001_py39.py in the architecture?
tutorial001_py39.py is located at docs_src/graphql_/tutorial001_py39.py (domain: FastAPI, subdomain: Routing, directory: docs_src/graphql_).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free