Provides GraphQL APIs to manage locations
To begin start by opening the devcontainer as outlined in the Development Guide
To initialize the database:
go build
./location-api migrate up
To run the api
make go-run
Interacting with the GraphQL queries:
Go to localhost:XXXX/playground
Input:
mutation {
locationCreate(input:{
name: "DA",
ownerID: "testtnt-123456",
description: "DA Metro"
}) {
location{
id
}
}
}
Output:
{
"data": {
"locationCreate": {
"location": {
"id": "lctnloc-NW_5CWPx3xeOuh4Ak2WgS"
}
}
}
}