File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -24,3 +24,23 @@ This 1m video shows how to use these tools to build an run a GraphQL query again
24
24
{% embed url="https://youtu.be/yN_H-hDrBao " %}
25
25
Use the GraphQL explorer to create a query against Boost
26
26
{% 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
+ ```
You can’t perform that action at this time.
0 commit comments