Skip to content

Commit f9f1443

Browse files
committed
update readme with query examples
1 parent f7020ac commit f9f1443

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ We will use the handly GraphQL [playground](https://github.com/prisma/graphql-pl
1818

1919
Enter the following url: `http://localhost:8888/.netlify/functions/graphql` in GraphQL playground.
2020

21-
GetAll Resources:
21+
### Example queries
22+
23+
`GetAll Resources:`
2224

2325
```
2426
{
@@ -32,6 +34,20 @@ GetAll Resources:
3234
}
3335
```
3436

37+
`GetAResourceById:`
38+
39+
```
40+
{
41+
resource(id: 1) {
42+
id
43+
title
44+
description
45+
url
46+
credit
47+
}
48+
}
49+
```
50+
3551
## Technologies used
3652

3753
- Netlify

0 commit comments

Comments
 (0)