Skip to content

Commit 148ebc9

Browse files
committed
examples/graphql: adds examples
1 parent 5549446 commit 148ebc9

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
mutation {
2+
authUser(username: "", password: "") {
3+
id
4+
jwt
5+
username
6+
}
7+
}

examples/graphql/queries/currentUser.graphql

Whitespace-only changes.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"Authorization": "Bearer JWT_TOKEN"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
query {
2+
ping
3+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
query {
2+
users {
3+
id
4+
username
5+
}
6+
}

0 commit comments

Comments
 (0)