Last active
January 15, 2016 16:28
-
-
Save guncha/4cdd4d8464ffbc8dd918 to your computer and use it in GitHub Desktop.
Example repo to demonstrate a caching issue with babel-relay-plugin-loader
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var query = Relay.QL` | |
| query { | |
| viewer { | |
| totalCount | |
| } | |
| } | |
| ` | |
| console.log("The compiled Relay Query:", query) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "babel-plugin-loader-issue", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "watch": "babel index.js --plugins babel-relay-plugin-loader --watch --out-file bundle.js" | |
| }, | |
| "author": "", | |
| "license": "ISC", | |
| "dependencies": { | |
| "babel-cli": "^6.4.0", | |
| "babel-relay-plugin-loader": "^0.6.3" | |
| }, | |
| "metadata": { | |
| "graphql": { | |
| "schema": "./schema.json" | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "__schema": { | |
| "queryType": { | |
| "name": "Root" | |
| }, | |
| "mutationType": { | |
| "name": "Mutation" | |
| }, | |
| "types": [ | |
| { | |
| "kind": "OBJECT", | |
| "name": "Root", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "node", | |
| "description": "Fetches an object given its ID", | |
| "args": [ | |
| { | |
| "name": "id", | |
| "description": "The ID of an object", | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "INTERFACE", | |
| "name": "Node", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "id", | |
| "description": "The ID of an object", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "todos", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "status", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "defaultValue": "\"any\"" | |
| }, | |
| { | |
| "name": "before", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "after", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "first", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Int", | |
| "ofType": null | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "last", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Int", | |
| "ofType": null | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "TodoConnection", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "totalCount", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Int", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "completedCount", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Int", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [ | |
| { | |
| "kind": "INTERFACE", | |
| "name": "Node", | |
| "ofType": null | |
| } | |
| ], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INTERFACE", | |
| "name": "Node", | |
| "description": "An object with an ID", | |
| "fields": [ | |
| { | |
| "name": "id", | |
| "description": "The id of the object.", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": [ | |
| { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "ofType": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| } | |
| ] | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "id", | |
| "description": "The ID of an object", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "text", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "complete", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [ | |
| { | |
| "kind": "INTERFACE", | |
| "name": "Node", | |
| "ofType": null | |
| } | |
| ], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "SCALAR", | |
| "name": "Int", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "TodoConnection", | |
| "description": "A connection to a list of items.", | |
| "fields": [ | |
| { | |
| "name": "pageInfo", | |
| "description": "Information to aid in pagination.", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "PageInfo", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "edges", | |
| "description": "Information to aid in pagination.", | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "TodoEdge", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "PageInfo", | |
| "description": "Information about pagination in a connection.", | |
| "fields": [ | |
| { | |
| "name": "hasNextPage", | |
| "description": "When paginating forwards, are there more items?", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "hasPreviousPage", | |
| "description": "When paginating backwards, are there more items?", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "startCursor", | |
| "description": "When paginating backwards, the cursor to continue.", | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "endCursor", | |
| "description": "When paginating forwards, the cursor to continue.", | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "TodoEdge", | |
| "description": "An edge in a connection.", | |
| "fields": [ | |
| { | |
| "name": "node", | |
| "description": "The item at the end of the edge", | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "cursor", | |
| "description": "A cursor for use in pagination", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "Mutation", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "addTodo", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "AddTodoInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "AddTodoPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "changeTodoStatus", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "ChangeTodoStatusInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "ChangeTodoStatusPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "markAllTodos", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "MarkAllTodosInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "MarkAllTodosPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "removeCompletedTodos", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RemoveCompletedTodosInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "RemoveCompletedTodosPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "removeTodo", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RemoveTodoInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "RemoveTodoPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "renameTodo", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "input", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RenameTodoInput", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "RenameTodoPayload", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "AddTodoInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "text", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "AddTodoPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "todoEdge", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "TodoEdge", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "ChangeTodoStatusInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "complete", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "id", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "ChangeTodoStatusPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "todo", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "MarkAllTodosInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "complete", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "MarkAllTodosPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "changedTodos", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RemoveCompletedTodosInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "RemoveCompletedTodosPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "deletedTodoIds", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RemoveTodoInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "id", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "RemoveTodoPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "deletedTodoId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "viewer", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "User", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "INPUT_OBJECT", | |
| "name": "RenameTodoInput", | |
| "description": null, | |
| "fields": null, | |
| "inputFields": [ | |
| { | |
| "name": "id", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "ID", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "text", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "interfaces": null, | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "RenameTodoPayload", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "todo", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "Todo", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "clientMutationId", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__Schema", | |
| "description": "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query and mutation operations.", | |
| "fields": [ | |
| { | |
| "name": "types", | |
| "description": "A list of all types supported by this server.", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type" | |
| } | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "queryType", | |
| "description": "The type that query operations will be rooted at.", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "mutationType", | |
| "description": "If this server supports mutation, the type that mutation operations will be rooted at.", | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "directives", | |
| "description": "A list of all directives supported by this server.", | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Directive" | |
| } | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "kind", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "ENUM", | |
| "name": "__TypeKind", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "name", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "description", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "fields", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "includeDeprecated", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| }, | |
| "defaultValue": "false" | |
| } | |
| ], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Field", | |
| "ofType": null | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "interfaces", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "possibleTypes", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "enumValues", | |
| "description": null, | |
| "args": [ | |
| { | |
| "name": "includeDeprecated", | |
| "description": null, | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| }, | |
| "defaultValue": "false" | |
| } | |
| ], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__EnumValue", | |
| "ofType": null | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "inputFields", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__InputValue", | |
| "ofType": null | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "ofType", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "ENUM", | |
| "name": "__TypeKind", | |
| "description": "An enum describing what kind of type a given __Type is", | |
| "fields": null, | |
| "inputFields": null, | |
| "interfaces": null, | |
| "enumValues": [ | |
| { | |
| "name": "SCALAR", | |
| "description": "Indicates this type is a scalar.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "OBJECT", | |
| "description": "Indicates this type is an object. `fields` and `interfaces` are valid fields.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "INTERFACE", | |
| "description": "Indicates this type is an interface. `fields` and `possibleTypes` are valid fields.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "UNION", | |
| "description": "Indicates this type is a union. `possibleTypes` is a valid field.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "ENUM", | |
| "description": "Indicates this type is an enum. `enumValues` is a valid field.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "INPUT_OBJECT", | |
| "description": "Indicates this type is an input object. `inputFields` is a valid field.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "LIST", | |
| "description": "Indicates this type is a list. `ofType` is a valid field.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "NON_NULL", | |
| "description": "Indicates this type is a non-null. `ofType` is a valid field.", | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__Field", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "description", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "args", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__InputValue" | |
| } | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "type", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "isDeprecated", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "deprecationReason", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__InputValue", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "description", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "type", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__Type", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "defaultValue", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__EnumValue", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "description", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "isDeprecated", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "deprecationReason", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| }, | |
| { | |
| "kind": "OBJECT", | |
| "name": "__Directive", | |
| "description": null, | |
| "fields": [ | |
| { | |
| "name": "name", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "description", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "SCALAR", | |
| "name": "String", | |
| "ofType": null | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "args", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "LIST", | |
| "name": null, | |
| "ofType": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "OBJECT", | |
| "name": "__InputValue" | |
| } | |
| } | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "onOperation", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "onFragment", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| }, | |
| { | |
| "name": "onField", | |
| "description": null, | |
| "args": [], | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "isDeprecated": false, | |
| "deprecationReason": null | |
| } | |
| ], | |
| "inputFields": null, | |
| "interfaces": [], | |
| "enumValues": null, | |
| "possibleTypes": null | |
| } | |
| ], | |
| "directives": [ | |
| { | |
| "name": "include", | |
| "description": "Directs the executor to include this field or fragment only when the `if` argument is true.", | |
| "args": [ | |
| { | |
| "name": "if", | |
| "description": "Included when true.", | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "onOperation": false, | |
| "onFragment": true, | |
| "onField": true | |
| }, | |
| { | |
| "name": "skip", | |
| "description": "Directs the executor to skip this field or fragment when the `if` argument is true.", | |
| "args": [ | |
| { | |
| "name": "if", | |
| "description": "Skipped when true.", | |
| "type": { | |
| "kind": "NON_NULL", | |
| "name": null, | |
| "ofType": { | |
| "kind": "SCALAR", | |
| "name": "Boolean", | |
| "ofType": null | |
| } | |
| }, | |
| "defaultValue": null | |
| } | |
| ], | |
| "onOperation": false, | |
| "onFragment": true, | |
| "onField": true | |
| } | |
| ] | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment