Me learning GraphQL, inspired by a great tutorial
You have two options:
- Preferably, Docker.
- A running Sql Server on "localhost", with a permissioned user for the credentials in your environment.
From the project's root (at the same level of the .sln file)
docker-compose build
docker-compose upYou may change the appsettings file or create a new one, then run:
cd Products.SI
dotnet run --environment <YourEnv>GraphQL query for sellers with their items:
query {
sellers {
name,
items {
description
}
}
}GraphQL mutation for new seller which retrieves only his id:
mutation {
addSeller(name: "New boy") {
id
}
}
- Write unit tests
- Write integration tests