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..9d7d467 --- /dev/null +++ b/examples/graphql/queries/currentUser.graphql @@ -0,0 +1,7 @@ +query { + currentUser { + id + jwt + username + } +} 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 + } +}