From 82ca4732be91d6b907726097eec02f732a918118 Mon Sep 17 00:00:00 2001 From: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> Date: Tue, 15 Aug 2023 23:16:03 +0000 Subject: [PATCH] add to README Signed-off-by: Stephen Hwang <126002920+sthwang-metal@users.noreply.github.com> --- README.md | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0bf4013..7fc876e 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file +> 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" + } + } + } +} +``` \ No newline at end of file