Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 990 Bytes

File metadata and controls

49 lines (37 loc) · 990 Bytes

fastapi uvicorn sqlalchemy graphene graphene-sqlalchemy alembic psycopg2 black python-dotenv

alembic init alembic

docker-compose run app alembic revision --autogenerate -m "New Migration" docker-compose run app alembic upgrade head

mutation CreateNewPost{ createNewPost(title:"new title1", content:"new content") { ok } }

query{ allPosts{ title } }

query{ postById(postId:2){ id title content } }

mutation newuser{ createNewUser(username:"test1", password:"test1") { ok } }

mutation authenticateUser{ authenticateUser(username:"test10", password:"test10") { ok } }

eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoidGVzdDEiLCJleHAiOjE2MjU1OTIyMDB9.4EaNBwe3yjg9NjwcC5F5S0zFaAr_QiOSTTGXjJqFHdk

mutation CreateNewPost{ createNewPost(title:"new title1", content:"new content", token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyIjoidGVzdDIwIiwiZXhwIjoxNjI1Njc4MzA1fQ.bUxdKz1KWougGZw-vRLdBGZN87WloCg-6Rai-bCObAc") { result } }