2022-05-05 16:06:57 -04:00
|
|
|
{
|
|
|
|
"info": {
|
2022-10-07 13:21:41 -04:00
|
|
|
"_postman_id": "bae0e3d0-2b86-46aa-b6df-523497a2296a",
|
2022-05-05 16:06:57 -04:00
|
|
|
"name": "GraphQL collection",
|
|
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
|
|
},
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "mutations",
|
|
|
|
"item": [
|
|
|
|
{
|
2022-10-07 13:21:41 -04:00
|
|
|
"name": "createPost",
|
2022-05-05 16:06:57 -04:00
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "graphql",
|
|
|
|
"graphql": {
|
2022-10-07 13:21:41 -04:00
|
|
|
"query": "mutation createPost ($title: String!, $text: String!, $category: String, $authorId: String!) {\n createPost (title: $title, text: $text, category: $category, authorId: $authorId) {\n id\n title\n text\n category\n }\n}",
|
|
|
|
"variables": "{\n \"title\": \"new post\",\n \"text\": \"new post text\",\n \"category\": \"category\",\n \"authorId\": \"Author0\"\n}"
|
2022-05-05 16:06:57 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"url": {
|
2022-10-07 13:21:41 -04:00
|
|
|
"raw": "http://localhost:8080/graphql",
|
2022-05-05 16:06:57 -04:00
|
|
|
"protocol": "http",
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
],
|
2022-10-07 13:21:41 -04:00
|
|
|
"port": "8080",
|
2022-05-05 16:06:57 -04:00
|
|
|
"path": [
|
|
|
|
"graphql"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
2022-10-07 13:21:41 -04:00
|
|
|
]
|
2022-05-05 16:06:57 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "queries",
|
|
|
|
"item": [
|
|
|
|
{
|
|
|
|
"name": "get recent posts",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "graphql",
|
|
|
|
"graphql": {
|
|
|
|
"query": "{\r\n recentPosts(count: 10, offset: 0) {\r\n id\r\n title\r\n category\r\n text\r\n author {\r\n id\r\n name\r\n thumbnail\r\n }\r\n }\r\n}",
|
|
|
|
"variables": ""
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"url": {
|
2022-10-07 13:21:41 -04:00
|
|
|
"raw": "http://localhost:8080/graphql",
|
2022-05-05 16:06:57 -04:00
|
|
|
"protocol": "http",
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
],
|
2022-10-07 13:21:41 -04:00
|
|
|
"port": "8080",
|
2022-05-05 16:06:57 -04:00
|
|
|
"path": [
|
|
|
|
"graphql"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "recentPosts - variables",
|
|
|
|
"request": {
|
|
|
|
"method": "POST",
|
|
|
|
"header": [],
|
|
|
|
"body": {
|
|
|
|
"mode": "graphql",
|
|
|
|
"graphql": {
|
|
|
|
"query": "query recentPosts ($count: Int, $offset: Int) {\n recentPosts (count: $count, offset: $offset) {\n id\n title\n text\n category\n }\n}",
|
2022-10-07 13:21:41 -04:00
|
|
|
"variables": "{\n \"count\": 5,\n \"offset\": 0\n}"
|
2022-05-05 16:06:57 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"url": {
|
2022-10-07 13:21:41 -04:00
|
|
|
"raw": "http://localhost:8080/graphql",
|
2022-05-05 16:06:57 -04:00
|
|
|
"protocol": "http",
|
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
],
|
2022-10-07 13:21:41 -04:00
|
|
|
"port": "8080",
|
2022-05-05 16:06:57 -04:00
|
|
|
"path": [
|
|
|
|
"graphql"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"response": []
|
|
|
|
}
|
2022-10-07 13:21:41 -04:00
|
|
|
]
|
2022-05-05 16:06:57 -04:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"event": [
|
|
|
|
{
|
|
|
|
"listen": "prerequest",
|
|
|
|
"script": {
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"listen": "test",
|
|
|
|
"script": {
|
|
|
|
"type": "text/javascript",
|
|
|
|
"exec": [
|
|
|
|
""
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"variable": [
|
|
|
|
{
|
|
|
|
"key": "url",
|
|
|
|
"value": "",
|
|
|
|
"type": "string"
|
|
|
|
}
|
2022-10-07 13:21:41 -04:00
|
|
|
]
|
|
|
|
}
|