Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 548 Bytes

commands.md

File metadata and controls

26 lines (19 loc) · 548 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 CreatNewPost{
    creatNewPost(title:"new title1", content:"new content"){
        ok
    }
}

query{
    allPosts{
        title
    }
}

query{
    postById(postId2){
        id title content
    }
}