This code is stored with is step by step evolution. We are going from scratch to full GraphQL (federated) endpoint.
FastAPI Strawberry SQLAlchemy Asyncio AsyncDataLoader
At begin it is stongly recomended to create virtual environment and install all libraries from requirements.txt file. To run it (in already activated environment) the command
pip install -r requirements.txt
should be used.
For each step (aka switching between versions) run
pip install -r requirements.txt --force
This enforce full instalation.
https://github.com/hrbolek/gql_evolution/tree/step_01
Hello world FastAPI
https://github.com/hrbolek/gql_evolution/tree/step_02
Hello world GraphQL endpoint
https://github.com/hrbolek/gql_evolution/tree/step_03
GraphQL endpoint with object
https://github.com/hrbolek/gql_evolution/tree/step_04
SQLAlchemy DBModel introduction
https://github.com/hrbolek/gql_evolution/tree/step_05
This step introduce a default data import and reading records from database.
https://github.com/hrbolek/gql_evolution/tree/step_06
This step will extend DBModel and GQLModel.
https://github.com/hrbolek/gql_evolution/tree/step_07
This step will introduce entity relations.
https://github.com/hrbolek/gql_evolution/tree/step_08
This step will introduce C and U operations (from CRUD).
https://github.com/hrbolek/gql_evolution/tree/step_09
Tests introduction