Skip to content

Commit

Permalink
add to README
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Hwang <[email protected]>
  • Loading branch information
sthwang-metal committed Aug 15, 2023
1 parent 118b48c commit 82ca473
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,36 @@ nats --server=nats:4222 --creds=/nsc/nkeys/creds/LOCAL/LOC/USER.creds sub --stre
```

**Interacting with the GraphQL queries:**
> Go to localhost:7905/playground
> Go to localhost:XXXX/playground
## Example GraphQL Queries

### Create Location Mutation

Input:
```graphql
mutation {
locationCreate(input:{
name: "DA",
ownerID: "testtnt-123456",
description: "DA Metro"
}) {
location{
id
}
}
}
```

Output:
```json
{
"data": {
"locationCreate": {
"location": {
"id": "lctnloc-NW_5CWPx3xeOuh4Ak2WgS"
}
}
}
}
```

0 comments on commit 82ca473

Please sign in to comment.