This examples shows you how to setup Strawberry with FastAPI
- Install dependencies
Use poetry to install dependencies:
poetry install
- Run the server
Run uvicorn to run the server:
poetry run uvicorn main:app --reload
- Access the GraphiQL IDE and explore the schema at http://localhost:8000/graphql
query AllTopRatedMovies {
topRatedMovies {
imageUrl
imdbId
imdbRating
imdbRatingCount
title
year
}
}