A simple GraphQL API developed with FastAPI, GraphQL, SQLAlchemy, Alembic, Graphene, PostgreSQL, Uvicorn and Docker. We build an API that will allow posting, mutations and queries. SQLAlchemy + Alembic is used to manage migrations, PostgreSQL + PGAdmin all wrapped deployed in Docker/Docker-Compose.
- Python 3.9 virtual env
- 'docker-compose run app alembic revision --autogenerate -m "New Migration"'
- "docker-compose up" with docker-desktop running
- http://127.0.0.1:8000/graphql --> graphiQL
- allPosts
- postById(postId:Int)
- createNewPost(title:"new title1", content:"new content")