Quick and dirty ๐
python --version
Python 3.10
pip install sqlalchemy
pip install sqlmodel
pip install fastapi
pip install 'strawberry-graphql[fastapi]'
pip install "uvicorn[standard]"
python models.py
# You can pre-populate it with gambiarra.sql if you want.
uvicorn rest:app --reload
uvicorn app:app --reload
- Go to http://127.0.0.1:8000/graphql
- Query:
query {
allDatasets {
id
name
schemas{
attr
}
files{
path
}
}
}
- Have fun