Skip to content

Commit 8be8605

Browse files
mayank.pandeygitbook-bot
mayank.pandey
authored andcommitted
GitBook: [#192] No subject
1 parent 81953d3 commit 8be8605

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

graphql-api.md

+20
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,23 @@ This 1m video shows how to use these tools to build an run a GraphQL query again
2424
{% embed url="https://youtu.be/yN_H-hDrBao" %}
2525
Use the GraphQL explorer to create a query against Boost
2626
{% endembed %}
27+
28+
### Example Queries
29+
30+
1\. Query failed deals
31+
32+
```
33+
curl -X POST \
34+
-H "Content-Type: application/json" \
35+
-d '{"query":"query { deals(limit: 10, query: \"failed to get size of imported\") { deals { ID CreatedAt Message } } }"}' \
36+
http://localhost:8080/graphql/query | jq
37+
```
38+
39+
2\. Cancel a deal where `ab12345c-5678-90de-12f3-45a6b78cd9ef` is the deal ID
40+
41+
```
42+
curl -X POST \
43+
-H "Content-Type: application/json" \
44+
-d '{"query":"mutation { dealCancel(id: \"ab12345c-5678-90de-12f3-45a6b78cd9ef\") }"}' \
45+
http://localhost:8080/graphql/query | jq
46+
```

0 commit comments

Comments
 (0)