From 148ebc9e78079140cb5f5296b7187ac90f6649cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Ram=C3=B3n?= Date: Fri, 8 Aug 2025 11:41:13 -0500 Subject: [PATCH 1/2] examples/graphql: adds examples --- examples/graphql/mutations/authUser.graphql | 7 +++++++ examples/graphql/queries/currentUser.graphql | 0 examples/graphql/queries/currentUser.headers.json | 3 +++ examples/graphql/queries/ping.graphql | 3 +++ examples/graphql/queries/users.graphql | 6 ++++++ 5 files changed, 19 insertions(+) create mode 100644 examples/graphql/mutations/authUser.graphql create mode 100644 examples/graphql/queries/currentUser.graphql create mode 100644 examples/graphql/queries/currentUser.headers.json create mode 100644 examples/graphql/queries/ping.graphql create mode 100644 examples/graphql/queries/users.graphql diff --git a/examples/graphql/mutations/authUser.graphql b/examples/graphql/mutations/authUser.graphql new file mode 100644 index 0000000..6a92c04 --- /dev/null +++ b/examples/graphql/mutations/authUser.graphql @@ -0,0 +1,7 @@ +mutation { + authUser(username: "", password: "") { + id + jwt + username + } +} diff --git a/examples/graphql/queries/currentUser.graphql b/examples/graphql/queries/currentUser.graphql new file mode 100644 index 0000000..e69de29 diff --git a/examples/graphql/queries/currentUser.headers.json b/examples/graphql/queries/currentUser.headers.json new file mode 100644 index 0000000..1ce2ebe --- /dev/null +++ b/examples/graphql/queries/currentUser.headers.json @@ -0,0 +1,3 @@ +{ + "Authorization": "Bearer JWT_TOKEN" +} diff --git a/examples/graphql/queries/ping.graphql b/examples/graphql/queries/ping.graphql new file mode 100644 index 0000000..662a7ec --- /dev/null +++ b/examples/graphql/queries/ping.graphql @@ -0,0 +1,3 @@ +query { + ping +} diff --git a/examples/graphql/queries/users.graphql b/examples/graphql/queries/users.graphql new file mode 100644 index 0000000..11a7ada --- /dev/null +++ b/examples/graphql/queries/users.graphql @@ -0,0 +1,6 @@ +query { + users { + id + username + } +} From 74f798dac94bbd06afc6edd4f1ce264925b0a5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Ram=C3=B3n?= Date: Fri, 8 Aug 2025 11:48:36 -0500 Subject: [PATCH 2/2] examples/graphql: adds currentUser.graphql example --- examples/graphql/queries/currentUser.graphql | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/graphql/queries/currentUser.graphql b/examples/graphql/queries/currentUser.graphql index e69de29..9d7d467 100644 --- a/examples/graphql/queries/currentUser.graphql +++ b/examples/graphql/queries/currentUser.graphql @@ -0,0 +1,7 @@ +query { + currentUser { + id + jwt + username + } +}