{ "info": { "_postman_id": "bae0e3d0-2b86-46aa-b6df-523497a2296a", "name": "GraphQL collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "mutations", "item": [ { "name": "createPost", "request": { "method": "POST", "header": [], "body": { "mode": "graphql", "graphql": { "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}" } }, "url": { "raw": "http://localhost:8080/graphql", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "graphql" ] } }, "response": [] } ] }, { "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": { "raw": "http://localhost:8080/graphql", "protocol": "http", "host": [ "localhost" ], "port": "8080", "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}", "variables": "{\n \"count\": 5,\n \"offset\": 0\n}" } }, "url": { "raw": "http://localhost:8080/graphql", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "graphql" ] } }, "response": [] } ] } ], "event": [ { "listen": "prerequest", "script": { "type": "text/javascript", "exec": [ "" ] } }, { "listen": "test", "script": { "type": "text/javascript", "exec": [ "" ] } } ], "variable": [ { "key": "url", "value": "", "type": "string" } ] }