Operations (sample payloads)

Main operations
Copy

Raw query
Copy

Run a raw query to a GraphQL endpoint

Sample Input

1
{
2
"graphql_endpoint": "https://api.example.com/graphql",
3
"headers": [
4
{
5
"key": "Authorization",
6
"value": "Bearer token123"
7
},
8
{
9
"key": "Content-Type",
10
"value": "application/json"
11
}
12
],
13
"variables": [
14
{
15
"key": "userId",
16
"value": "12345"
17
},
18
{
19
"key": "limit",
20
"value": 10
21
}
22
],
23
"query": "query GetUserPosts($userId: ID!, $limit: Int!) { user(id: $userId) { name posts(limit: $limit) { id title content } } }",
24
"fail_on_api_error": true
25
}

Sample Output

1
{
2
"data": {
3
"user": {
4
"name": "John Doe",
5
"posts": [
6
{
7
"id": "post1",
8
"title": "My First Post",
9
"content": "This is the content of my first post."
10
},
11
{
12
"id": "post2",
13
"title": "Another Post",
14
"content": "Here's another post I wrote."
15
}
16
]
17
}
18
}
19
}