Skip to content

rodrigoney/fastapi-strawberry-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

fastapi-strawberry-graphql

Quick and dirty ๐Ÿ“

python

python --version
Python 3.10

pip

pip install sqlalchemy
pip install sqlmodel
pip install fastapi
pip install 'strawberry-graphql[fastapi]'
pip install "uvicorn[standard]"

create gambiarra db

python models.py
# You can pre-populate it with gambiarra.sql if you want.

start rest

uvicorn rest:app --reload

start graphql

uvicorn app:app --reload

Play around graphQL

query {
  allDatasets {
    id
    name
    schemas{
      attr
    }
    files{
      path
    }
  }
}
  • Have fun

About

Quick and dirty ๐Ÿ“

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages