- Create and start container:
task run
or
docker-compose up -d
- Access:
localhost:8080/graphql
- Create Brand:
mutation createBrand {
  createBrand(input: {name: "Fiat"}) {
    name
  }
}
- Create Car:
mutation createCar {
  createCar(input: {name: "Punto", brandID: $brandID}) {
    name
  }
}
- List all Brands:
query listBrands{
  brands {
    id
    name
  }
}
- List all Cars:
query listCars {
  cars {
    id
    name
    brand {
      name
      id
    }
  }
}
task stop
or
docker-compose down -v