From 3d15e62c1bb469ded8e32221d46cda7daca5be67 Mon Sep 17 00:00:00 2001 From: Ritesh Kumar Date: Wed, 30 Aug 2017 23:05:43 +0530 Subject: [PATCH] update files --- components/ConversionPanel.js | 88 +- components/Layout.js | 6 +- package.json | 8 +- pages/graphql-to-flow.js | 32 + pages/graphql-to-typescript.js | 59 +- utils/graphql-schema.js | 5877 ++++++-------------------------- yarn.lock | 361 +- 7 files changed, 1500 insertions(+), 4931 deletions(-) diff --git a/components/ConversionPanel.js b/components/ConversionPanel.js index 2aad284..b3072c6 100644 --- a/components/ConversionPanel.js +++ b/components/ConversionPanel.js @@ -1,4 +1,5 @@ import React, { PureComponent } from "react"; +import cn from "classnames"; import Router from "next/router"; import isBrowser from "is-in-browser"; import copy from "copy-text-to-clipboard"; @@ -46,7 +47,10 @@ type Props = { initialCheckboxValue: ?boolean, leftTitle: string, rightTitle: string, - prettifyRightPanel: ?boolean + prettifyRightPanel: ?boolean, + splitLeft: ?boolean, + splitTitle: ?string, + splitValue: ?string }; export default class ConversionPanel extends PureComponent { @@ -56,31 +60,34 @@ export default class ConversionPanel extends PureComponent { leftMode: "javascript", rightMode: "javascript", pathname: "/", - prettifyRightPanel: true + prettifyRightPanel: true, + splitLeft: false }; - constructor(props) { - super(props); - - this.state = { - resultValue: "", - value: "", - info: "", - infoType: "" - }; - } + state = { + resultValue: "", + value: "", + splitValue: "", + info: "", + infoType: "" + }; componentDidMount() { const code = this.props.url.query.code || this.props.defaultText; + const splitValue = this.props.url.query.splitValue || this.props.splitValue; this.setState({ value: code, - resultValue: this.props.getTransformedValue(code) + splitValue, + resultValue: this.props.getTransformedValue(code, splitValue) }); } - onChange = (newValue: string) => { + onChange = (newValue: string, leftSplitValue: string) => { try { - const code = this.props.getTransformedValue(newValue); + const code = this.props.getTransformedValue( + newValue || this.state.value, + leftSplitValue || this.state.splitValue + ); this.setState({ resultValue: code, @@ -88,7 +95,7 @@ export default class ConversionPanel extends PureComponent { infoType: "" }); - this.setCodeInUrl(newValue); + this.setCodeInUrl(newValue, leftSplitValue); } catch (e) { this.setState({ info: e.message, @@ -97,15 +104,17 @@ export default class ConversionPanel extends PureComponent { } this.setState({ - value: newValue + value: newValue || this.state.value, + splitValue: leftSplitValue || this.state.splitValue }); }; - setCodeInUrl = code => { + setCodeInUrl = (code, leftSplitValue) => { Router.replace({ pathname: this.props.url.pathname, query: { - code + code, + splitValue: leftSplitValue } }); }; @@ -162,9 +171,15 @@ export default class ConversionPanel extends PureComponent { initialCheckboxValue, leftTitle, rightTitle, - prettifyRightPanel + prettifyRightPanel, + splitLeft, + splitTitle } = this.props; - const { infoType, resultValue, value, info } = this.state; + const { infoType, resultValue, value, info, splitValue } = this.state; + + const leftClass = cn("section left", { + split: splitLeft + }); return (
@@ -247,6 +262,7 @@ export default class ConversionPanel extends PureComponent { height: 50px; background-color: white; border-bottom: 1px solid #eee; + border-top: 1px solid #eee; display: flex; align-items: center; padding: 0 10px; @@ -275,6 +291,10 @@ export default class ConversionPanel extends PureComponent { height: 100% !important; } + .split #code { + height: 50% !important; + } + .right #code { background-color: #fafafa; } @@ -307,7 +327,7 @@ export default class ConversionPanel extends PureComponent { `}
-
+
{leftTitle}
+
+ this.onChange(null, x)} + name="code" + value={splitValue} + editorProps={{ $blockScrolling: true }} + highlightActiveLine={false} + scrollMargin={[20]} + focus + fontSize={14} + wrapEnabled + /> +
+ )}
diff --git a/components/Layout.js b/components/Layout.js index e16dc7f..c71c130 100644 --- a/components/Layout.js +++ b/components/Layout.js @@ -128,8 +128,12 @@ const x = [ ), content: [ { - label: "GraphQL schema to TypeScript", + label: "GraphQL to TypeScript", path: "/graphql-to-typescript" + }, + { + label: "GraphQL to Flow", + path: "/graphql-to-flow" } ] }, diff --git a/package.json b/package.json index c582c4a..8b70360 100644 --- a/package.json +++ b/package.json @@ -15,14 +15,15 @@ "author": "", "license": "MIT", "dependencies": { - "@gql2ts/from-schema": "^1.2.1", - "@gql2ts/language-flow": "^1.2.1", "@tsuyoshiwada/htmltojsx": "^0.0.4", + "apollo-codegen": "0.17.0-alpha.1", "babel-standalone": "^6.26.0", "babili-webpack-plugin": "^0.1.2", + "classnames": "^2.2.5", "copy-text-to-clipboard": "^1.0.3", "css-to-react-native": "^2.0.4", "generate-schema": "^2.5.1", + "graphql": "^0.10.5", "is-in-browser": "^1.1.3", "json2dts": "^0.0.2", "lodash": "^4.17.4", @@ -33,12 +34,9 @@ "rc-collapse": "^1.7.6", "react": "^15.6.1", "react-ace": "^5.2.0", - "react-collapse": "^4.0.3", - "react-collapsible": "^2.0.0", "react-dom": "^15.6.1", "react-fuzzy-picker": "^0.5.1", "react-github-corner": "^1.0.0", - "react-responsive-accordion": "^1.0.0", "stringify-object": "^3.2.0", "webpack-bundle-analyzer": "^2.9.0", "xml-js": "^1.4.1" diff --git a/pages/graphql-to-flow.js b/pages/graphql-to-flow.js index e69de29..4539e76 100644 --- a/pages/graphql-to-flow.js +++ b/pages/graphql-to-flow.js @@ -0,0 +1,32 @@ +import React, { PureComponent } from "react"; +import { generateSource } from "apollo-codegen/lib/flow/codeGeneration"; +import Layout from "../components/Layout"; +import ConversionPanel from "../components/ConversionPanel"; +import { dummySchema, dummyQuery, transform } from "../utils/graphql-schema"; + +export default class Json2Ts extends PureComponent { + getTransformedValue = (newValue, splitValue) => { + return transform(newValue, splitValue, generateSource); + }; + + render() { + return ( + + + + ); + } +} diff --git a/pages/graphql-to-typescript.js b/pages/graphql-to-typescript.js index 5d13fdc..9376b55 100644 --- a/pages/graphql-to-typescript.js +++ b/pages/graphql-to-typescript.js @@ -1,59 +1,12 @@ import React, { PureComponent } from "react"; -import { parse, buildClientSchema } from "graphql" -import CodeGenerator from "apollo-codegen/lib/utilities/CodeGenerator"; -import { generateSource } from "apollo-codegen/lib/typescript/codeGeneration" -import { compileToIR } from "apollo-codegen/lib/compilation" +import { generateSource } from "apollo-codegen/lib/typescript/codeGeneration"; import Layout from "../components/Layout"; import ConversionPanel from "../components/ConversionPanel"; -import schema from "../utils/graphql-schema"; - -const query = `query HeroName { - hero { - name - } -}` - -function setup(schema) { - const context = { - schema: schema, - operations: {}, - fragments: {}, - typesUsed: {} - } - - const generator = new CodeGenerator(context); - - const compileFromSource = (source) => { - const document = parse(source); - const context = compileToIR(schema, document, { - mergeInFieldsFromFragmentSpreads: true, - addTypename: true - }); - generator.context = context; - return context; - }; - - const addFragment = (fragment) => { - generator.context.fragments[fragment.fragmentName] = fragment; - }; - - return { generator, compileFromSource, addFragment }; -} +import { dummySchema, dummyQuery, transform } from "../utils/graphql-schema"; export default class Json2Ts extends PureComponent { getTransformedValue = (newValue, splitValue) => { - if (!splitValue || !newValue) { return } - const schemaData = JSON.parse(newValue) - - if (!schemaData.data && !schemaData.__schema) { - throw new Error('GraphQL schema file should contain a valid GraphQL introspection query result'); - } - - const schema = buildClientSchema(schemaData.data ? schemaData.data : schemaData) - - const { compileFromSource } = setup(schema) - const context = compileFromSource(splitValue) - return generateSource(context) + return transform(newValue, splitValue, generateSource); }; render() { @@ -64,14 +17,14 @@ export default class Json2Ts extends PureComponent { rightTitle="TypeScript Definition" getTransformedValue={this.getTransformedValue} name={"graphql_to_typescript"} - defaultText={schema} + defaultText={dummySchema} leftMode="typescript" rightMode="typescript" url={this.props.url} prettifyRightPanel={false} splitLeft={true} - splitTitle={'Query'} - splitValue={query} + splitTitle={"Query"} + splitValue={dummyQuery} /> ); diff --git a/utils/graphql-schema.js b/utils/graphql-schema.js index 3ff8014..a69bcdb 100644 --- a/utils/graphql-schema.js +++ b/utils/graphql-schema.js @@ -1,540 +1,112 @@ +import { compileToLegacyIR } from "apollo-codegen/lib/compiler/legacyIR"; +import CodeGenerator from "apollo-codegen/lib/utilities/CodeGenerator"; +import { parse, buildClientSchema } from "graphql"; + const x = { data: { __schema: { queryType: { - name: "Root" + name: "Query" + }, + mutationType: { + name: "Mutation" }, - mutationType: null, subscriptionType: null, types: [ { kind: "OBJECT", - name: "Root", - description: null, + name: "Query", + description: + "The query type, represents all of the entry points into our object graph", fields: [ { - name: "allFilms", - description: null, + name: "hero", + description: "", args: [ { - name: "after", - description: null, + name: "episode", + description: "", type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "first", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - }, - { - name: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", + kind: "ENUM", + name: "Episode", ofType: null }, defaultValue: null } ], type: { - kind: "OBJECT", - name: "FilmsConnection", + kind: "INTERFACE", + name: "Character", ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: "film", - description: null, + name: "reviews", + description: "", + args: [ + { + name: "episode", + description: "", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "ENUM", + name: "Episode", + ofType: null + } + }, + defaultValue: null + } + ], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "OBJECT", + name: "Review", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "search", + description: "", + args: [ + { + name: "text", + description: "", + type: { + kind: "SCALAR", + name: "String", + ofType: null + }, + defaultValue: null + } + ], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "UNION", + name: "SearchResult", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "character", + description: "", args: [ { name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "filmID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Film", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "allPeople", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "PeopleConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "person", - description: null, - args: [ - { - name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "personID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Person", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "allPlanets", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "PlanetsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "planet", - description: null, - args: [ - { - name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "planetID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Planet", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "allSpecies", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "SpeciesConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "species", - description: null, - args: [ - { - name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "speciesID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Species", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "allStarships", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "StarshipsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starship", - description: null, - args: [ - { - name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "starshipID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Starship", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "allVehicles", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "VehiclesConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicle", - description: null, - args: [ - { - name: "id", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - }, - { - name: "vehicleID", - description: null, - type: { - kind: "SCALAR", - name: "ID", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "Vehicle", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "node", - description: "Fetches an object given its ID", - args: [ - { - name: "id", - description: "The ID of an object", + description: "", type: { kind: "NON_NULL", name: null, @@ -549,7 +121,88 @@ const x = { ], type: { kind: "INTERFACE", - name: "Node", + name: "Character", + ofType: null + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "droid", + description: "", + args: [ + { + name: "id", + description: "", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "ID", + ofType: null + } + }, + defaultValue: null + } + ], + type: { + kind: "OBJECT", + name: "Droid", + ofType: null + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "human", + description: "", + args: [ + { + name: "id", + description: "", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "ID", + ofType: null + } + }, + defaultValue: null + } + ], + type: { + kind: "OBJECT", + name: "Human", + ofType: null + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "starship", + description: "", + args: [ + { + name: "id", + description: "", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "ID", + ofType: null + } + }, + defaultValue: null + } + ], + type: { + kind: "OBJECT", + name: "Starship", ofType: null }, isDeprecated: false, @@ -561,6 +214,178 @@ const x = { enumValues: null, possibleTypes: null }, + { + kind: "ENUM", + name: "Episode", + description: "The episodes in the Star Wars trilogy", + fields: null, + inputFields: null, + interfaces: null, + enumValues: [ + { + name: "NEWHOPE", + description: + "Star Wars Episode IV: A New Hope, released in 1977.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "EMPIRE", + description: + "Star Wars Episode V: The Empire Strikes Back, released in 1980.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "JEDI", + description: + "Star Wars Episode VI: Return of the Jedi, released in 1983.", + isDeprecated: false, + deprecationReason: null + } + ], + possibleTypes: null + }, + { + kind: "INTERFACE", + name: "Character", + description: "A character from the Star Wars universe", + fields: [ + { + name: "id", + description: "The ID of the character", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "ID", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "name", + description: "The name of the character", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "String", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friends", + description: + "The friends of the character, or an empty list if they have none", + args: [], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "INTERFACE", + name: "Character", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friendsConnection", + description: + "The friends of the character exposed as a connection with edges", + args: [ + { + name: "first", + description: "", + type: { + kind: "SCALAR", + name: "Int", + ofType: null + }, + defaultValue: null + }, + { + name: "after", + description: "", + type: { + kind: "SCALAR", + name: "ID", + ofType: null + }, + defaultValue: null + } + ], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "OBJECT", + name: "FriendsConnection", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "appearsIn", + description: "The movies this character appears in", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "LIST", + name: null, + ofType: { + kind: "ENUM", + name: "Episode", + ofType: null + } + } + }, + isDeprecated: false, + deprecationReason: null + } + ], + inputFields: null, + interfaces: null, + enumValues: null, + possibleTypes: [ + { + kind: "OBJECT", + name: "Human", + ofType: null + }, + { + kind: "OBJECT", + name: "Droid", + ofType: null + } + ] + }, + { + kind: "SCALAR", + name: "ID", + description: + 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.', + fields: null, + inputFields: null, + interfaces: null, + enumValues: null, + possibleTypes: null + }, { kind: "SCALAR", name: "String", @@ -585,45 +410,12 @@ const x = { }, { kind: "OBJECT", - name: "FilmsConnection", - description: "A connection to a list of items.", + name: "FriendsConnection", + description: "A connection object for a character's friends", 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: "FilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, { name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', + description: "The total number of friends", args: [], type: { kind: "SCALAR", @@ -634,16 +426,48 @@ const x = { deprecationReason: null }, { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', + name: "edges", + description: "The edges for each of the character's friends.", args: [], type: { kind: "LIST", name: null, ofType: { kind: "OBJECT", - name: "Film", + name: "FriendsEdge", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friends", + description: + "A list of the friends, as a convenience when edges are not needed.", + args: [], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "INTERFACE", + name: "Character", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "pageInfo", + description: "Information for paginating this connection", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "OBJECT", + name: "PageInfo", ofType: null } }, @@ -658,19 +482,19 @@ const x = { }, { kind: "OBJECT", - name: "PageInfo", - description: "Information about pagination in a connection.", + name: "FriendsEdge", + description: "An edge object for a character's friends", fields: [ { - name: "hasNextPage", - description: "When paginating forwards, are there more items?", + name: "cursor", + description: "A cursor used for pagination", args: [], type: { kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", - name: "Boolean", + name: "ID", ofType: null } }, @@ -678,28 +502,35 @@ const x = { deprecationReason: null }, { - name: "hasPreviousPage", - description: "When paginating backwards, are there more items?", + name: "node", + description: "The character represented by this friendship edge", args: [], type: { - kind: "NON_NULL", - name: null, - ofType: { - kind: "SCALAR", - name: "Boolean", - ofType: null - } + kind: "INTERFACE", + name: "Character", + ofType: null }, isDeprecated: false, deprecationReason: null - }, + } + ], + inputFields: null, + interfaces: [], + enumValues: null, + possibleTypes: null + }, + { + kind: "OBJECT", + name: "PageInfo", + description: "Information for paginating this connection", + fields: [ { name: "startCursor", - description: "When paginating backwards, the cursor to continue.", + description: "", args: [], type: { kind: "SCALAR", - name: "String", + name: "ID", ofType: null }, isDeprecated: false, @@ -707,15 +538,31 @@ const x = { }, { name: "endCursor", - description: "When paginating forwards, the cursor to continue.", + description: "", args: [], type: { kind: "SCALAR", - name: "String", + name: "ID", ofType: null }, isDeprecated: false, deprecationReason: null + }, + { + name: "hasNextPage", + description: "", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "Boolean", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null } ], inputFields: null, @@ -736,36 +583,36 @@ const x = { }, { kind: "OBJECT", - name: "FilmsEdge", - description: "An edge in a connection.", + name: "Review", + description: "Represents a review for a movie", fields: [ { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cursor", - description: "A cursor for use in pagination", + name: "stars", + description: "The number of stars this review gave, 1-5", args: [], type: { kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", - name: "String", + name: "Int", ofType: null } }, isDeprecated: false, deprecationReason: null + }, + { + name: "commentary", + description: "Comment about the movie", + args: [], + type: { + kind: "SCALAR", + name: "String", + ofType: null + }, + isDeprecated: false, + deprecationReason: null } ], inputFields: null, @@ -774,553 +621,58 @@ const x = { possibleTypes: null }, { - kind: "OBJECT", - name: "Film", - description: "A single film.", - fields: [ - { - name: "title", - description: "The title of this film.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "episodeID", - description: "The episode number of this film.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "openingCrawl", - description: - "The opening paragraphs at the beginning of this film.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "director", - description: "The name of the director of this film.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "producers", - description: "The name(s) of the producer(s) of this film.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "releaseDate", - description: - "The ISO 8601 date format of film release at original creator country.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "speciesConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "FilmSpeciesConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starshipConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "FilmStarshipsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicleConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "FilmVehiclesConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "characterConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "FilmCharactersConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "planetConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "FilmPlanetsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - 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 - } - ], - 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 - } - ], + kind: "UNION", + name: "SearchResult", + description: "", + fields: null, inputFields: null, interfaces: null, enumValues: null, possibleTypes: [ { kind: "OBJECT", - name: "Planet", + name: "Human", ofType: null }, { kind: "OBJECT", - name: "Species", + name: "Droid", ofType: null }, { kind: "OBJECT", name: "Starship", ofType: null - }, - { - kind: "OBJECT", - name: "Vehicle", - ofType: null - }, - { - kind: "OBJECT", - name: "Person", - ofType: null - }, - { - kind: "OBJECT", - name: "Film", - ofType: null } ] }, { kind: "OBJECT", - name: "Planet", - description: - "A large mass, planet or planetoid in the Star Wars Universe, at the time of\n0 ABY.", + name: "Human", + description: "A humanoid creature from the Star Wars universe", fields: [ + { + name: "id", + description: "The ID of the human", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "ID", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, { name: "name", - description: "The name of this planet.", + description: "What this human calls themselves", args: [], type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "diameter", - description: "The diameter of this planet in kilometers.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "rotationPeriod", - description: - "The number of standard hours it takes for this planet to complete a single\nrotation on its axis.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "orbitalPeriod", - description: - "The number of standard days it takes for this planet to complete a single orbit\nof its local star.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "gravity", - description: - 'A number denoting the gravity of this planet, where "1" is normal or 1 standard\nG. "2" is twice or 2 standard Gs. "0.5" is half or 0.5 standard Gs.', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "population", - description: - "The average population of sentient beings inhabiting this planet.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "climates", - description: "The climates of this planet.", - args: [], - type: { - kind: "LIST", + kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", @@ -1332,25 +684,43 @@ const x = { deprecationReason: null }, { - name: "terrains", - description: "The terrains of this planet.", + name: "homePlanet", + description: "The home planet of the human, or null if unknown", args: [], type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } + kind: "SCALAR", + name: "String", + ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: "surfaceWater", - description: - "The percentage of the planet surface that is naturally occuring water or bodies\nof water.", + name: "height", + description: "Height in the preferred unit, default is meters", + args: [ + { + name: "unit", + description: "", + type: { + kind: "ENUM", + name: "LengthUnit", + ofType: null + }, + defaultValue: "METER" + } + ], + type: { + kind: "SCALAR", + name: "Float", + ofType: null + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "mass", + description: "Mass in kilograms, or null if unknown", args: [], type: { kind: "SCALAR", @@ -1361,22 +731,30 @@ const x = { deprecationReason: null }, { - name: "residentConnection", - description: null, + name: "friends", + description: + "This human's friends, or an empty list if they have none", + args: [], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "INTERFACE", + name: "Character", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friendsConnection", + description: + "The friends of the human exposed as a connection with edges", args: [ - { - name: "after", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, { name: "first", - description: null, + description: "", type: { kind: "SCALAR", name: "Int", @@ -1385,123 +763,59 @@ const x = { defaultValue: null }, { - name: "before", - description: null, + name: "after", + description: "", type: { kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", + name: "ID", ofType: null }, defaultValue: null } ], type: { - kind: "OBJECT", - name: "PlanetResidentsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "filmConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null + kind: "NON_NULL", + name: null, + ofType: { + kind: "OBJECT", + name: "FriendsConnection", + ofType: null } - ], - type: { - kind: "OBJECT", - name: "PlanetFilmsConnection", - ofType: null }, isDeprecated: false, deprecationReason: null }, { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "id", - description: "The ID of an object", + name: "appearsIn", + description: "The movies this human appears in", args: [], type: { kind: "NON_NULL", name: null, ofType: { - kind: "SCALAR", - name: "ID", + kind: "LIST", + name: null, + ofType: { + kind: "ENUM", + name: "Episode", + ofType: null + } + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "starships", + description: + "A list of starships this person has piloted, or an empty list if none", + args: [], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "OBJECT", + name: "Starship", ofType: null } }, @@ -1513,13 +827,36 @@ const x = { interfaces: [ { kind: "INTERFACE", - name: "Node", + name: "Character", ofType: null } ], enumValues: null, possibleTypes: null }, + { + kind: "ENUM", + name: "LengthUnit", + description: "Units of height", + fields: null, + inputFields: null, + interfaces: null, + enumValues: [ + { + name: "METER", + description: "The standard unit around the world", + isDeprecated: false, + deprecationReason: null + }, + { + name: "FOOT", + description: "Primarily used in the United States", + isDeprecated: false, + deprecationReason: null + } + ], + possibleTypes: null + }, { kind: "SCALAR", name: "Float", @@ -1533,435 +870,12 @@ const x = { }, { kind: "OBJECT", - name: "PlanetResidentsConnection", - description: "A connection to a list of items.", + name: "Starship", + description: "", 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: "PlanetResidentsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "residents", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PlanetResidentsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - 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: "Person", - description: - "An individual person or character within the Star Wars universe.", - fields: [ - { - name: "name", - description: "The name of this person.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "birthYear", - description: - "The birth year of the person, using the in-universe standard of BBY or ABY -\nBefore the Battle of Yavin or After the Battle of Yavin. The Battle of Yavin is\na battle that occurs at the end of Star Wars episode IV: A New Hope.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "eyeColor", - description: - 'The eye color of this person. Will be "unknown" if not known or "n/a" if the\nperson does not have an eye.', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "gender", - description: - 'The gender of this person. Either "Male", "Female" or "unknown",\n"n/a" if the person does not have a gender.', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "hairColor", - description: - 'The hair color of this person. Will be "unknown" if not known or "n/a" if the\nperson does not have hair.', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "height", - description: "The height of the person in centimeters.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "mass", - description: "The mass of the person in kilograms.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "skinColor", - description: "The skin color of this person.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "homeworld", - description: "A planet that this person was born on or inhabits.", - args: [], - type: { - kind: "OBJECT", - name: "Planet", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "filmConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "PersonFilmsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "species", - description: - "The species that this person belongs to, or null if unknown.", - args: [], - type: { - kind: "OBJECT", - name: "Species", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starshipConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "PersonStarshipsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicleConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "PersonVehiclesConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, { name: "id", - description: "The ID of an object", + description: "The ID of the starship", args: [], type: { kind: "NON_NULL", @@ -1974,112 +888,10 @@ const x = { }, isDeprecated: false, deprecationReason: null - } - ], - inputFields: null, - interfaces: [ - { - kind: "INTERFACE", - name: "Node", - ofType: null - } - ], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PersonFilmsConnection", - 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: "PersonFilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Film", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PersonFilmsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cursor", - description: "A cursor for use in pagination", + name: "name", + description: "The name of the starship", args: [], type: { kind: "NON_NULL", @@ -2092,61 +904,22 @@ const x = { }, isDeprecated: false, deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "Species", - description: - "A type of person or character within the Star Wars Universe.", - fields: [ - { - name: "name", - description: "The name of this species.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null }, { - name: "classification", - description: - 'The classification of this species, such as "mammal" or "reptile".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "designation", - description: - 'The designation of this species, such as "sentient".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "averageHeight", - description: "The average height of this species in centimeters.", - args: [], + name: "length", + description: "Length of the starship, along the longest axis", + args: [ + { + name: "unit", + description: "", + type: { + kind: "ENUM", + name: "LengthUnit", + ofType: null + }, + defaultValue: "METER" + } + ], type: { kind: "SCALAR", name: "Float", @@ -2156,227 +929,48 @@ const x = { deprecationReason: null }, { - name: "averageLifespan", - description: "The average lifespan of this species in years.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "eyeColors", - description: - "Common eye colors for this species, null if this species does not typically\nhave eyes.", + name: "coordinates", + description: "", args: [], type: { kind: "LIST", name: null, ofType: { - kind: "SCALAR", - name: "String", - ofType: null + kind: "NON_NULL", + name: null, + ofType: { + kind: "LIST", + name: null, + ofType: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "Float", + ofType: null + } + } + } } }, isDeprecated: false, deprecationReason: null - }, - { - name: "hairColors", - description: - "Common hair colors for this species, null if this species does not typically\nhave hair.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "skinColors", - description: - "Common skin colors for this species, null if this species does not typically\nhave skin.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "language", - description: "The language commonly spoken by this species.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "homeworld", - description: "A planet that this species originates from.", - args: [], - type: { - kind: "OBJECT", - name: "Planet", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "personConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "SpeciesPeopleConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "filmConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "SpeciesFilmsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, + } + ], + inputFields: null, + interfaces: [], + enumValues: null, + possibleTypes: null + }, + { + kind: "OBJECT", + name: "Droid", + description: + "An autonomous mechanical character in the Star Wars universe", + fields: [ { name: "id", - description: "The ID of an object", + description: "The ID of the droid", args: [], type: { kind: "NON_NULL", @@ -2389,13 +983,116 @@ const x = { }, isDeprecated: false, deprecationReason: null + }, + { + name: "name", + description: "What others call this droid", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "String", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friends", + description: + "This droid's friends, or an empty list if they have none", + args: [], + type: { + kind: "LIST", + name: null, + ofType: { + kind: "INTERFACE", + name: "Character", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "friendsConnection", + description: + "The friends of the droid exposed as a connection with edges", + args: [ + { + name: "first", + description: "", + type: { + kind: "SCALAR", + name: "Int", + ofType: null + }, + defaultValue: null + }, + { + name: "after", + description: "", + type: { + kind: "SCALAR", + name: "ID", + ofType: null + }, + defaultValue: null + } + ], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "OBJECT", + name: "FriendsConnection", + ofType: null + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "appearsIn", + description: "The movies this droid appears in", + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "LIST", + name: null, + ofType: { + kind: "ENUM", + name: "Episode", + ofType: null + } + } + }, + isDeprecated: false, + deprecationReason: null + }, + { + name: "primaryFunction", + description: "This droid's primary function", + args: [], + type: { + kind: "SCALAR", + name: "String", + ofType: null + }, + isDeprecated: false, + deprecationReason: null } ], inputFields: null, interfaces: [ { kind: "INTERFACE", - name: "Node", + name: "Character", ofType: null } ], @@ -2404,2785 +1101,149 @@ const x = { }, { kind: "OBJECT", - name: "SpeciesPeopleConnection", - 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: "SpeciesPeopleEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "people", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "SpeciesPeopleEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - 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: "SpeciesFilmsConnection", - 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: "SpeciesFilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Film", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "SpeciesFilmsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - 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: "SCALAR", - name: "ID", + name: "Mutation", description: - 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.', - fields: null, + "The mutation type, represents all updates we can make to our data", + fields: [ + { + name: "createReview", + description: "", + args: [ + { + name: "episode", + description: "", + type: { + kind: "ENUM", + name: "Episode", + ofType: null + }, + defaultValue: null + }, + { + name: "review", + description: "", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "INPUT_OBJECT", + name: "ReviewInput", + ofType: null + } + }, + defaultValue: null + } + ], + type: { + kind: "OBJECT", + name: "Review", + ofType: null + }, + isDeprecated: false, + deprecationReason: null + } + ], inputFields: null, + interfaces: [], + enumValues: null, + possibleTypes: null + }, + { + kind: "INPUT_OBJECT", + name: "ReviewInput", + description: + "The input object sent when someone is creating a new review", + fields: null, + inputFields: [ + { + name: "stars", + description: "0-5 stars", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "Int", + ofType: null + } + }, + defaultValue: null + }, + { + name: "commentary", + description: "Comment about the movie, optional", + type: { + kind: "SCALAR", + name: "String", + ofType: null + }, + defaultValue: null + }, + { + name: "favorite_color", + description: "Favorite color, optional", + type: { + kind: "INPUT_OBJECT", + name: "ColorInput", + ofType: null + }, + defaultValue: null + } + ], interfaces: null, enumValues: null, possibleTypes: null }, { - kind: "OBJECT", - name: "PersonStarshipsConnection", - description: "A connection to a list of items.", - fields: [ + kind: "INPUT_OBJECT", + name: "ColorInput", + description: "The input object sent when passing in a color", + fields: null, + inputFields: [ { - 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: "PersonStarshipsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starships", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Starship", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PersonStarshipsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Starship", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cursor", - description: "A cursor for use in pagination", - args: [], + name: "red", + description: "", type: { kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", - name: "String", + name: "Int", ofType: null } }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "Starship", - description: - "A single transport craft that has hyperdrive capability.", - fields: [ - { - name: "name", - description: - 'The name of this starship. The common name, such as "Death Star".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null + defaultValue: null }, { - name: "model", - description: - 'The model or official name of this starship. Such as "T-65 X-wing" or "DS-1\nOrbital Battle Station".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starshipClass", - description: - 'The class of this starship, such as "Starfighter" or "Deep Space Mobile\nBattlestation"', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "manufacturers", - description: "The manufacturers of this starship.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "costInCredits", - description: - "The cost of this starship new, in galactic credits.", - args: [], - type: { - kind: "SCALAR", - name: "Float", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "length", - description: "The length of this starship in meters.", - args: [], - type: { - kind: "SCALAR", - name: "Float", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "crew", - description: - "The number of personnel needed to run or pilot this starship.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "passengers", - description: - "The number of non-essential people this starship can transport.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "maxAtmospheringSpeed", - description: - "The maximum speed of this starship in atmosphere. null if this starship is\nincapable of atmosphering flight.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "hyperdriveRating", - description: "The class of this starships hyperdrive.", - args: [], - type: { - kind: "SCALAR", - name: "Float", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "MGLT", - description: - 'The Maximum number of Megalights this starship can travel in a standard hour.\nA "Megalight" is a standard unit of distance and has never been defined before\nwithin the Star Wars universe. This figure is only really useful for measuring\nthe difference in speed of starships. We can assume it is similar to AU, the\ndistance between our Sun (Sol) and Earth.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cargoCapacity", - description: - "The maximum number of kilograms that this starship can transport.", - args: [], - type: { - kind: "SCALAR", - name: "Float", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "consumables", - description: - "The maximum length of time that this starship can provide consumables for its\nentire crew without having to resupply.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "pilotConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "StarshipPilotsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "filmConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "StarshipFilmsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "id", - description: "The ID of an object", - args: [], + name: "green", + description: "", type: { kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", - name: "ID", + name: "Int", ofType: null } }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [ - { - kind: "INTERFACE", - name: "Node", - ofType: null - } - ], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "StarshipPilotsConnection", - 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 + defaultValue: null }, { - name: "edges", - description: "Information to aid in pagination.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "StarshipPilotsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "pilots", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "StarshipPilotsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cursor", - description: "A cursor for use in pagination", - args: [], + name: "blue", + description: "", type: { kind: "NON_NULL", name: null, ofType: { kind: "SCALAR", - name: "String", + name: "Int", ofType: null } }, - isDeprecated: false, - deprecationReason: null + defaultValue: null } ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "StarshipFilmsConnection", - 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: "StarshipFilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Film", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "StarshipFilmsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - 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: "PersonVehiclesConnection", - 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: "PersonVehiclesEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicles", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Vehicle", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PersonVehiclesEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Vehicle", - 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: "Vehicle", - description: - "A single transport craft that does not have hyperdrive capability", - fields: [ - { - name: "name", - description: - 'The name of this vehicle. The common name, such as "Sand Crawler" or "Speeder\nbike".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "model", - description: - 'The model or official name of this vehicle. Such as "All-Terrain Attack\nTransport".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicleClass", - description: - 'The class of this vehicle, such as "Wheeled" or "Repulsorcraft".', - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "manufacturers", - description: "The manufacturers of this vehicle.", - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "SCALAR", - name: "String", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "costInCredits", - description: "The cost of this vehicle new, in Galactic Credits.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "length", - description: "The length of this vehicle in meters.", - args: [], - type: { - kind: "SCALAR", - name: "Float", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "crew", - description: - "The number of personnel needed to run or pilot this vehicle.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "passengers", - description: - "The number of non-essential people this vehicle can transport.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "maxAtmospheringSpeed", - description: "The maximum speed of this vehicle in atmosphere.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "cargoCapacity", - description: - "The maximum number of kilograms that this vehicle can transport.", - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "consumables", - description: - "The maximum length of time that this vehicle can provide consumables for its\nentire crew without having to resupply.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "pilotConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "VehiclePilotsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "filmConnection", - description: null, - args: [ - { - 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: "before", - description: null, - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - defaultValue: null - }, - { - name: "last", - description: null, - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - defaultValue: null - } - ], - type: { - kind: "OBJECT", - name: "VehicleFilmsConnection", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "created", - description: - "The ISO 8601 date format of the time that this resource was created.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "edited", - description: - "The ISO 8601 date format of the time that this resource was edited.", - args: [], - type: { - kind: "SCALAR", - name: "String", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - 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 - } - ], - inputFields: null, - interfaces: [ - { - kind: "INTERFACE", - name: "Node", - ofType: null - } - ], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "VehiclePilotsConnection", - 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: "VehiclePilotsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "pilots", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "VehiclePilotsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - 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: "VehicleFilmsConnection", - 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: "VehicleFilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Film", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "VehicleFilmsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - 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: "PlanetFilmsConnection", - 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: "PlanetFilmsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "films", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Film", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PlanetFilmsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Film", - 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: "FilmSpeciesConnection", - 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: "FilmSpeciesEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "species", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Species", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "FilmSpeciesEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Species", - 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: "FilmStarshipsConnection", - 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: "FilmStarshipsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starships", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Starship", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "FilmStarshipsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Starship", - 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: "FilmVehiclesConnection", - 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: "FilmVehiclesEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicles", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Vehicle", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "FilmVehiclesEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Vehicle", - 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: "FilmCharactersConnection", - 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: "FilmCharactersEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "characters", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "FilmCharactersEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - 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: "FilmPlanetsConnection", - 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: "FilmPlanetsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "planets", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Planet", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "FilmPlanetsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Planet", - 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: "PeopleConnection", - 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: "PeopleEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "people", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Person", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PeopleEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Person", - 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: "PlanetsConnection", - 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: "PlanetsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "planets", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Planet", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "PlanetsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Planet", - 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: "SpeciesConnection", - 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: "SpeciesEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "species", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Species", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "SpeciesEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Species", - 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: "StarshipsConnection", - 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: "StarshipsEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "starships", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Starship", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "StarshipsEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Starship", - 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: "VehiclesConnection", - 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: "VehiclesEdge", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "totalCount", - description: - 'A count of the total number of objects in this connection, ignoring pagination.\nThis allows a client to fetch the first five objects by passing "5" as the\nargument to "first", then fetch the total count so it could display "5 of 83",\nfor example.', - args: [], - type: { - kind: "SCALAR", - name: "Int", - ofType: null - }, - isDeprecated: false, - deprecationReason: null - }, - { - name: "vehicles", - description: - 'A list of all of the objects returned in the connection. This is a convenience\nfield provided for quickly exploring the API; rather than querying for\n"{ edges { node } }" when no edge data is needed, this field can be be used\ninstead. Note that when clients like Relay need to fetch the "cursor" field on\nthe edge to enable efficient pagination, this shortcut cannot be used, and the\nfull "{ edges { node } }" version should be used instead.', - args: [], - type: { - kind: "LIST", - name: null, - ofType: { - kind: "OBJECT", - name: "Vehicle", - ofType: null - } - }, - isDeprecated: false, - deprecationReason: null - } - ], - inputFields: null, - interfaces: [], - enumValues: null, - possibleTypes: null - }, - { - kind: "OBJECT", - name: "VehiclesEdge", - description: "An edge in a connection.", - fields: [ - { - name: "node", - description: "The item at the end of the edge", - args: [], - type: { - kind: "OBJECT", - name: "Vehicle", - 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: [], + interfaces: null, enumValues: null, possibleTypes: null }, @@ -5207,7 +1268,8 @@ const x = { name: null, ofType: { kind: "OBJECT", - name: "__Type" + name: "__Type", + ofType: null } } } @@ -5272,7 +1334,8 @@ const x = { name: null, ofType: { kind: "OBJECT", - name: "__Directive" + name: "__Directive", + ofType: null } } } @@ -5588,7 +1651,8 @@ const x = { name: null, ofType: { kind: "OBJECT", - name: "__InputValue" + name: "__InputValue", + ofType: null } } } @@ -5787,7 +1851,7 @@ const x = { kind: "OBJECT", name: "__Directive", description: - "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL’s execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", + "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.", fields: [ { name: "name", @@ -5817,6 +1881,30 @@ const x = { isDeprecated: false, deprecationReason: null }, + { + name: "locations", + description: null, + args: [], + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "LIST", + name: null, + ofType: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "ENUM", + name: "__DirectiveLocation", + ofType: null + } + } + } + }, + isDeprecated: false, + deprecationReason: null + }, { name: "args", description: null, @@ -5832,7 +1920,8 @@ const x = { name: null, ofType: { kind: "OBJECT", - name: "__InputValue" + name: "__InputValue", + ofType: null } } } @@ -5853,8 +1942,8 @@ const x = { ofType: null } }, - isDeprecated: false, - deprecationReason: null + isDeprecated: true, + deprecationReason: "Use `locations`." }, { name: "onFragment", @@ -5869,8 +1958,8 @@ const x = { ofType: null } }, - isDeprecated: false, - deprecationReason: null + isDeprecated: true, + deprecationReason: "Use `locations`." }, { name: "onField", @@ -5885,21 +1974,166 @@ const x = { ofType: null } }, - isDeprecated: false, - deprecationReason: null + isDeprecated: true, + deprecationReason: "Use `locations`." } ], inputFields: null, interfaces: [], enumValues: null, possibleTypes: null + }, + { + kind: "ENUM", + name: "__DirectiveLocation", + description: + "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.", + fields: null, + inputFields: null, + interfaces: null, + enumValues: [ + { + name: "QUERY", + description: "Location adjacent to a query operation.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "MUTATION", + description: "Location adjacent to a mutation operation.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "SUBSCRIPTION", + description: "Location adjacent to a subscription operation.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "FIELD", + description: "Location adjacent to a field.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "FRAGMENT_DEFINITION", + description: "Location adjacent to a fragment definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "FRAGMENT_SPREAD", + description: "Location adjacent to a fragment spread.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "INLINE_FRAGMENT", + description: "Location adjacent to an inline fragment.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "SCHEMA", + description: "Location adjacent to a schema definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "SCALAR", + description: "Location adjacent to a scalar definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "OBJECT", + description: "Location adjacent to an object type definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "FIELD_DEFINITION", + description: "Location adjacent to a field definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "ARGUMENT_DEFINITION", + description: "Location adjacent to an argument definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "INTERFACE", + description: "Location adjacent to an interface definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "UNION", + description: "Location adjacent to a union definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "ENUM", + description: "Location adjacent to an enum definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "ENUM_VALUE", + description: "Location adjacent to an enum value definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "INPUT_OBJECT", + description: + "Location adjacent to an input object type definition.", + isDeprecated: false, + deprecationReason: null + }, + { + name: "INPUT_FIELD_DEFINITION", + description: + "Location adjacent to an input object field definition.", + isDeprecated: false, + deprecationReason: null + } + ], + possibleTypes: null } ], directives: [ + { + name: "skip", + description: + "Directs the executor to skip this field or fragment when the `if` argument is true.", + locations: ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], + args: [ + { + name: "if", + description: "Skipped when true.", + type: { + kind: "NON_NULL", + name: null, + ofType: { + kind: "SCALAR", + name: "Boolean", + ofType: null + } + }, + defaultValue: null + } + ] + }, { name: "include", description: "Directs the executor to include this field or fragment only when the `if` argument is true.", + locations: ["FIELD", "FRAGMENT_SPREAD", "INLINE_FRAGMENT"], args: [ { name: "if", @@ -5918,23 +2152,21 @@ const x = { ] }, { - name: "skip", + name: "deprecated", description: - "Directs the executor to skip this field or fragment when the `if` argument is true.", + "Marks an element of a GraphQL schema as no longer supported.", + locations: ["FIELD_DEFINITION", "ENUM_VALUE"], args: [ { - name: "if", - description: "Skipped when true.", + name: "reason", + description: + "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted in [Markdown](https://daringfireball.net/projects/markdown/).", type: { - kind: "NON_NULL", - name: null, - ofType: { - kind: "SCALAR", - name: "Boolean", - ofType: null - } + kind: "SCALAR", + name: "String", + ofType: null }, - defaultValue: null + defaultValue: '"No longer supported"' } ] } @@ -5943,4 +2175,71 @@ const x = { } }; -export default JSON.stringify(x, null, 2); +export const dummySchema = JSON.stringify(x, null, 2); + +export const dummyQuery = `query HeroAndFriendsNames { + hero { + name + ...heroFriends + } +} + +fragment heroFriends on Character { + friends { + name + } +}`; + +export function setup(schema) { + const context = { + schema: schema, + operations: {}, + fragments: {}, + typesUsed: {} + }; + + const generator = new CodeGenerator(context); + + const compileFromSource = source => { + const document = parse(source); + const context = compileToLegacyIR(schema, document, { + mergeInFieldsFromFragmentSpreads: true, + addTypename: true + }); + generator.context = context; + return context; + }; + + const addFragment = fragment => { + generator.context.fragments[fragment.fragmentName] = fragment; + }; + + return { generator, compileFromSource, addFragment }; +} + +export function transform(newValue, splitValue, generateSource) { + if (!splitValue || !newValue) { + return; + } + const schemaData = JSON.parse(newValue); + + if (!schemaData.data && !schemaData.__schema) { + throw new Error( + "GraphQL schema file should contain a valid GraphQL introspection query result" + ); + } + + try { + const schema = buildClientSchema( + schemaData.data ? schemaData.data : schemaData + ); + + const { compileFromSource } = setup(schema); + + const context = compileFromSource(splitValue); + + return generateSource(context); + } catch (e) { + throw new Error(e.message); + } +} diff --git a/yarn.lock b/yarn.lock index 85a5d5d..0306f32 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,35 +2,6 @@ # yarn lockfile v1 -"@gql2ts/from-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@gql2ts/from-schema/-/from-schema-1.2.1.tgz#eed6d82164ba85546d40efee9f55d4852e809634" - dependencies: - "@gql2ts/language-typescript" "^1.2.1" - "@gql2ts/util" "^1.2.1" - graphql "^0.10.5" - -"@gql2ts/language-flow@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@gql2ts/language-flow/-/language-flow-1.2.1.tgz#ccd33f5b4f52e803cc89ed605220a10779e8c2e3" - dependencies: - "@gql2ts/language-typescript" "^1.2.1" - "@gql2ts/util" "^1.2.1" - -"@gql2ts/language-typescript@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@gql2ts/language-typescript/-/language-typescript-1.2.1.tgz#e45e641e76721d038af0f2e1875c7420926347f1" - dependencies: - "@gql2ts/util" "^1.2.1" - humps "^2.0.0" - typescript "^2.2.2" - -"@gql2ts/util@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@gql2ts/util/-/util-1.2.1.tgz#fad2d545051aeded1bf3ede94139ad52b9003a66" - dependencies: - graphql "^0.10.5" - "@tsuyoshiwada/htmltojsx@^0.0.4": version "0.0.4" resolved "https://registry.yarnpkg.com/@tsuyoshiwada/htmltojsx/-/htmltojsx-0.0.4.tgz#73e86b580183ba680f53bc53e84f19d3378f8857" @@ -123,6 +94,20 @@ anymatch@^1.3.0: micromatch "^2.1.5" normalize-path "^2.0.0" +apollo-codegen@0.17.0-alpha.1: + version "0.17.0-alpha.1" + resolved "https://registry.yarnpkg.com/apollo-codegen/-/apollo-codegen-0.17.0-alpha.1.tgz#848973a21436ddfb9028ec14a3de71bc0e14eefa" + dependencies: + change-case "^3.0.1" + core-js "^2.5.0" + glob "^7.1.2" + graphql "^0.10.5" + inflected "^2.0.2" + mkdirp "^0.5.1" + node-fetch "^1.7.2" + source-map-support "^0.4.15" + yargs "^8.0.2" + aproba@^1.0.3: version "1.1.2" resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.1.2.tgz#45c6629094de4e96f693ef7eab74ae079c240fc1" @@ -1177,6 +1162,13 @@ builtin-status-codes@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8" +camel-case@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" + dependencies: + no-case "^2.2.0" + upper-case "^1.1.1" + camelcase@^1.0.2: version "1.2.1" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" @@ -1189,6 +1181,10 @@ camelcase@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + caniuse-lite@^1.0.30000710: version "1.0.30000710" resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000710.tgz#1c249bf7c6a61161c9b10906e3ad9fa5b6761af1" @@ -1218,6 +1214,29 @@ chalk@1.1.3, chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: strip-ansi "^3.0.0" supports-color "^2.0.0" +change-case@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/change-case/-/change-case-3.0.1.tgz#ee5f5ad0415ad1ad9e8072cf49cd4cfa7660a554" + dependencies: + camel-case "^3.0.0" + constant-case "^2.0.0" + dot-case "^2.1.0" + header-case "^1.0.0" + is-lower-case "^1.1.0" + is-upper-case "^1.1.0" + lower-case "^1.1.1" + lower-case-first "^1.0.0" + no-case "^2.2.0" + param-case "^2.1.0" + pascal-case "^2.0.0" + path-case "^2.1.0" + sentence-case "^2.1.0" + snake-case "^2.1.0" + swap-case "^1.1.0" + title-case "^2.1.0" + upper-case "^1.1.1" + upper-case-first "^1.1.0" + chokidar@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-1.7.0.tgz#798e689778151c8076b4b360e5edd28cda2bb468" @@ -1333,6 +1352,13 @@ console-control-strings@^1.0.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" +constant-case@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/constant-case/-/constant-case-2.0.0.tgz#4175764d389d3fa9c8ecd29186ed6005243b6a46" + dependencies: + snake-case "^2.1.0" + upper-case "^1.1.1" + constants-browserify@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" @@ -1373,6 +1399,10 @@ core-js@^2.4.0: version "2.4.1" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" +core-js@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.0.tgz#569c050918be6486b3837552028ae0466b717086" + core-util-is@1.0.2, core-util-is@~1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" @@ -1412,7 +1442,7 @@ create-react-class@^15.6.0: loose-envify "^1.3.1" object-assign "^4.1.1" -cross-spawn@5.1.0: +cross-spawn@5.1.0, cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" dependencies: @@ -1615,6 +1645,12 @@ domutils@^1.5.1: dom-serializer "0" domelementtype "1" +dot-case@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/dot-case/-/dot-case-2.1.1.tgz#34dcf37f50a8e93c2b3bca8bb7fb9155c7da3bee" + dependencies: + no-case "^2.2.0" + duplexer@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.1.tgz#ace6ff808c1ce66b57d1ebf97977acb02334cfc1" @@ -1818,6 +1854,18 @@ evp_bytestokey@^1.0.0: dependencies: create-hash "^1.1.1" +execa@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-0.7.0.tgz#944becd34cc41ee32a63a9faf27ad5a65fc59777" + dependencies: + cross-spawn "^5.0.1" + get-stream "^3.0.0" + is-stream "^1.1.0" + npm-run-path "^2.0.0" + p-finally "^1.0.0" + signal-exit "^3.0.0" + strip-eof "^1.0.0" + expand-brackets@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" @@ -1965,7 +2013,7 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" -find-up@^2.1.0: +find-up@^2.0.0, find-up@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" dependencies: @@ -2081,6 +2129,10 @@ get-own-enumerable-property-symbols@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-1.0.1.tgz#f1d4e3ad1402e039898e56d1e9b9aa924c26e484" +get-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" + getpass@^0.1.1: version "0.1.7" resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" @@ -2125,6 +2177,17 @@ glob@^6.0.1: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + global@^4.3.0, global@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/global/-/global-4.3.2.tgz#e76989268a6c74c38908b1305b10fc0e394e9d0f" @@ -2230,6 +2293,13 @@ hawk@~3.1.3: hoek "2.x.x" sntp "1.x.x" +header-case@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/header-case/-/header-case-1.0.1.tgz#9535973197c144b09613cd65d317ef19963bd02d" + dependencies: + no-case "^2.2.0" + upper-case "^1.1.3" + hmac-drbg@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1" @@ -2304,10 +2374,6 @@ https-browserify@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/https-browserify/-/https-browserify-0.0.1.tgz#3f91365cabe60b77ed0ebba24b454e3e09d95a82" -humps@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/humps/-/humps-2.0.1.tgz#dd02ea6081bd0568dc5d073184463957ba9ef9aa" - iconv-lite@^0.4.17, iconv-lite@~0.4.13: version "0.4.18" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.18.tgz#23d8656b16aae6742ac29732ea8f0336a4789cf2" @@ -2320,6 +2386,10 @@ indexof@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/indexof/-/indexof-0.0.1.tgz#82dc336d232b9062179d05ab3293a66059fd435d" +inflected@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/inflected/-/inflected-2.0.2.tgz#1bc31ac427ca5321b2a16cc56d6ff29fcd2ff80c" + inflight@^1.0.4: version "1.0.6" resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" @@ -2439,6 +2509,12 @@ is-in-browser@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/is-in-browser/-/is-in-browser-1.1.3.tgz#56ff4db683a078c6082eb95dad7dc62e1d04f835" +is-lower-case@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/is-lower-case/-/is-lower-case-1.1.3.tgz#7e147be4768dc466db3bfb21cc60b31e6ad69393" + dependencies: + lower-case "^1.1.0" + is-number@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" @@ -2487,7 +2563,7 @@ is-regexp@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" -is-stream@^1.0.1: +is-stream@^1.0.1, is-stream@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" @@ -2495,6 +2571,12 @@ is-typedarray@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" +is-upper-case@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-upper-case/-/is-upper-case-1.1.2.tgz#8d0b1fa7e7933a1e58483600ec7d9661cbaf756f" + dependencies: + upper-case "^1.1.0" + is-utf8@^0.2.0: version "0.2.1" resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" @@ -2660,6 +2742,15 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + loader-runner@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.3.0.tgz#f482aea82d543e07921700d5a46ef26fdac6b8a2" @@ -2709,6 +2800,16 @@ loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.3.1: dependencies: js-tokens "^3.0.0" +lower-case-first@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/lower-case-first/-/lower-case-first-1.0.2.tgz#e5da7c26f29a7073be02d52bac9980e5922adfa1" + dependencies: + lower-case "^1.1.2" + +lower-case@^1.1.0, lower-case@^1.1.1, lower-case@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/lower-case/-/lower-case-1.1.4.tgz#9a2cabd1b9e8e0ae993a4bf7d5875c39c42e8eac" + lru-cache@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-3.2.0.tgz#71789b3b7f5399bec8565dda38aa30d2a097efee" @@ -2745,6 +2846,12 @@ media-typer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" +mem@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mem/-/mem-1.1.0.tgz#5edd52b485ca1d900fe64895505399a0dfa45f76" + dependencies: + mimic-fn "^1.0.0" + memory-fs@^0.4.0, memory-fs@~0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" @@ -2817,7 +2924,7 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a" -"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2: +"minimatch@2 || 3", minimatch@^3.0.0, minimatch@^3.0.2, minimatch@^3.0.4: version "3.0.4" resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" dependencies: @@ -2943,6 +3050,12 @@ next@^3.1.0: write-file-webpack-plugin "4.1.0" xss-filters "1.2.7" +no-case@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/no-case/-/no-case-2.3.1.tgz#7aeba1c73a52184265554b7dc03baf720df80081" + dependencies: + lower-case "^1.1.1" + node-fetch@1.6.3, node-fetch@^1.0.1: version "1.6.3" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04" @@ -2950,6 +3063,13 @@ node-fetch@1.6.3, node-fetch@^1.0.1: encoding "^0.1.11" is-stream "^1.0.1" +node-fetch@^1.7.2: + version "1.7.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.2.tgz#c54e9aac57e432875233525f3c891c4159ffefd7" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + node-libs-browser@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.0.0.tgz#a3a59ec97024985b46e958379646f96c4b616646" @@ -3026,6 +3146,12 @@ normalize-path@^2.0.0, normalize-path@^2.0.1: dependencies: remove-trailing-separator "^1.0.1" +npm-run-path@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f" + dependencies: + path-key "^2.0.0" + npmlog@^4.0.2: version "4.1.2" resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-4.1.2.tgz#08a7f2a8bf734604779a9efa4ad5cc717abb954b" @@ -3128,6 +3254,14 @@ os-locale@^1.4.0: dependencies: lcid "^1.0.0" +os-locale@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-2.1.0.tgz#42bc2900a6b5b8bd17376c8e882b65afccf24bf2" + dependencies: + execa "^0.7.0" + lcid "^1.0.0" + mem "^1.1.0" + os-tmpdir@^1.0.0, os-tmpdir@^1.0.1, os-tmpdir@~1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" @@ -3139,6 +3273,10 @@ osenv@^0.1.4: os-homedir "^1.0.0" os-tmpdir "^1.0.0" +p-finally@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae" + p-limit@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" @@ -3157,6 +3295,12 @@ pako@~0.2.0: version "0.2.9" resolved "https://registry.yarnpkg.com/pako/-/pako-0.2.9.tgz#f3f7522f4ef782348da8161bad9ecfd51bf83a75" +param-case@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/param-case/-/param-case-2.1.1.tgz#df94fd8cf6531ecf75e6bef9a0858fbc72be2247" + dependencies: + no-case "^2.2.0" + parse-asn1@^5.0.0: version "5.1.0" resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.0.tgz#37c4f9b7ed3ab65c74817b5f2480937fbf97c712" @@ -3190,10 +3334,23 @@ parseurl@~1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.1.tgz#c8ab8c9223ba34888aa64a297b28853bec18da56" +pascal-case@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pascal-case/-/pascal-case-2.0.1.tgz#2d578d3455f660da65eca18ef95b4e0de912761e" + dependencies: + camel-case "^3.0.0" + upper-case-first "^1.1.0" + path-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/path-browserify/-/path-browserify-0.0.0.tgz#a0b870729aae214005b7d5032ec2cbbb0fb4451a" +path-case@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/path-case/-/path-case-2.1.1.tgz#94b8037c372d3fe2906e465bb45e25d226e8eea5" + dependencies: + no-case "^2.2.0" + path-exists@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" @@ -3212,6 +3369,10 @@ path-is-inside@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" +path-key@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + path-match@1.2.4: version "1.2.4" resolved "https://registry.yarnpkg.com/path-match/-/path-match-1.2.4.tgz#a62747f3c7e0c2514762697f24443585b09100ea" @@ -3241,6 +3402,12 @@ path-type@^1.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + dependencies: + pify "^2.0.0" + pbkdf2@^3.0.3: version "3.0.13" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.13.tgz#c37d295531e786b1da3e3eadc840426accb0ae25" @@ -3443,25 +3610,11 @@ react-ace@^5.2.0: opencollective "^1.0.3" prop-types "^15.5.8" -react-collapse@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/react-collapse/-/react-collapse-4.0.3.tgz#b96de959ed0092a43534630b599a4753dd76d543" - dependencies: - prop-types "^15.5.8" - -react-collapsible@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/react-collapsible/-/react-collapsible-2.0.0.tgz#a98113bb26ab55fc5ed95a4835c3fbf8cbf973af" - dependencies: - prop-types "^15.5.8" - react "^15.5.4" - react-dom "^15.5.4" - react-deep-force-update@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/react-deep-force-update/-/react-deep-force-update-2.0.1.tgz#4f7f6c12c3e7de42f345992a3c518236fa1ecad3" -react-dom@^15.5.4, react-dom@^15.6.1: +react-dom@^15.6.1: version "15.6.1" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-15.6.1.tgz#2cb0ed4191038e53c209eb3a79a23e2a4cf99470" dependencies: @@ -3506,11 +3659,7 @@ react-proxy@^3.0.0-alpha.0: dependencies: lodash "^4.6.1" -react-responsive-accordion@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/react-responsive-accordion/-/react-responsive-accordion-1.0.0.tgz#e2c39ee13e18daa40d9d78486beccd27f4988cba" - -react@^15.5.4, react@^15.6.1: +react@^15.6.1: version "15.6.1" resolved "https://registry.yarnpkg.com/react/-/react-15.6.1.tgz#baa8434ec6780bde997cdc380b79cd33b96393df" dependencies: @@ -3535,6 +3684,13 @@ read-pkg-up@^1.0.1: find-up "^1.0.0" read-pkg "^1.0.0" +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + read-pkg@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" @@ -3543,6 +3699,14 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.4, readable-stream@^2.2.6: version "2.3.3" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.3.tgz#368f2512d79f9d46fdfc71349ae7878bbc1eb95c" @@ -3786,6 +3950,13 @@ send@^0.15.3: range-parser "~1.2.0" statuses "~1.3.1" +sentence-case@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/sentence-case/-/sentence-case-2.1.1.tgz#1f6e2dda39c168bf92d13f86d4a918933f667ed4" + dependencies: + no-case "^2.2.0" + upper-case-first "^1.1.2" + serve-static@1.12.3: version "1.12.3" resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.12.3.tgz#9f4ba19e2f3030c547f8af99107838ec38d5b1e2" @@ -3839,6 +4010,12 @@ slash@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" +snake-case@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/snake-case/-/snake-case-2.1.0.tgz#41bdb1b73f30ec66a04d4e2cad1b76387d4d6d9f" + dependencies: + no-case "^2.2.0" + sntp@1.x.x: version "1.0.9" resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" @@ -3855,6 +4032,12 @@ source-map-support@0.4.15, source-map-support@^0.4.2: dependencies: source-map "^0.5.6" +source-map-support@^0.4.15: + version "0.4.16" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.16.tgz#16fecf98212467d017d586a2af68d628b9421cd8" + dependencies: + source-map "^0.5.6" + source-map@0.5.6, source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1, source-map@~0.5.3: version "0.5.6" resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" @@ -3987,6 +4170,14 @@ strip-bom@^2.0.0: dependencies: is-utf8 "^0.2.0" +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-eof@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" + strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" @@ -4020,6 +4211,13 @@ supports-color@^3.1.0: dependencies: has-flag "^1.0.0" +swap-case@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/swap-case/-/swap-case-1.1.2.tgz#c39203a4587385fad3c850a0bd1bcafa081974e3" + dependencies: + lower-case "^1.1.1" + upper-case "^1.1.1" + tapable@^0.2.7, tapable@~0.2.5: version "0.2.8" resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.2.8.tgz#99372a5c999bf2df160afc0d74bed4f47948cd22" @@ -4068,6 +4266,13 @@ timers-browserify@^2.0.2: global "^4.3.2" setimmediate "^1.0.4" +title-case@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/title-case/-/title-case-2.1.1.tgz#3e127216da58d2bc5becf137ab91dae3a7cd8faa" + dependencies: + no-case "^2.2.0" + upper-case "^1.0.3" + tmp@^0.0.31: version "0.0.31" resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.31.tgz#8f38ab9438e17315e5dbd8b3657e8bfb277ae4a7" @@ -4123,10 +4328,6 @@ type-of-is@^3.4.0: version "3.5.1" resolved "https://registry.yarnpkg.com/type-of-is/-/type-of-is-3.5.1.tgz#eec2fc89b828dbf9900eb6416eee30f4fe0fcd31" -typescript@^2.2.2: - version "2.5.1" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.5.1.tgz#ce7cc93ada3de19475cc9d17e3adea7aee1832aa" - ua-parser-js@^0.7.9: version "0.7.12" resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.12.tgz#04c81a99bdd5dc52263ea29d24c6bf8d4818a4bb" @@ -4168,6 +4369,16 @@ unpipe@~1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" +upper-case-first@^1.1.0, upper-case-first@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/upper-case-first/-/upper-case-first-1.1.2.tgz#5d79bedcff14419518fd2edb0a0507c9b6859115" + dependencies: + upper-case "^1.1.1" + +upper-case@^1.0.3, upper-case@^1.1.0, upper-case@^1.1.1, upper-case@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598" + url@0.11.0, url@^0.11.0: version "0.11.0" resolved "https://registry.yarnpkg.com/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" @@ -4312,6 +4523,10 @@ which-module@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + which@^1.2.9: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" @@ -4401,6 +4616,12 @@ yargs-parser@^4.2.0: dependencies: camelcase "^3.0.0" +yargs-parser@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-7.0.0.tgz#8d0ac42f16ea55debd332caf4c4038b3e3f5dfd9" + dependencies: + camelcase "^4.1.0" + yargs@^3.15.0: version "3.32.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.32.0.tgz#03088e9ebf9e756b69751611d2a5ef591482c995" @@ -4431,6 +4652,24 @@ yargs@^6.0.0: y18n "^3.2.1" yargs-parser "^4.2.0" +yargs@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-8.0.2.tgz#6299a9055b1cefc969ff7e79c1d918dceb22c360" + dependencies: + camelcase "^4.1.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^2.0.0" + read-pkg-up "^2.0.0" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^2.0.0" + which-module "^2.0.0" + y18n "^3.2.1" + yargs-parser "^7.0.0" + yargs@~3.10.0: version "3.10.0" resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1"