Last active
September 23, 2019 21:23
-
-
Save artola/684f4835328993c7dff2663f0297ab6e to your computer and use it in GitHub Desktop.
Bug relay-compiler-language-typescript v5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @flow | |
* @relayHash c5a1fc9ebb4ce413f79a74e6a0553510 | |
*/ | |
/* eslint-disable */ | |
'use strict'; | |
/*:: | |
import type { ConcreteRequest } from 'relay-runtime'; | |
export type trialQueryVariables = {||}; | |
export type trialQueryResponse = {| | |
+__typename: string, | |
+hero: {| | |
+__typename: string, | |
+name: string, | |
+homePlanet?: ?string, | |
+primaryFunction?: string, | |
|}, | |
|}; | |
export type trialQuery = {| | |
variables: trialQueryVariables, | |
response: trialQueryResponse, | |
|}; | |
*/ | |
/* | |
query trialQuery { | |
__typename | |
hero { | |
__typename | |
name | |
... on Human { | |
homePlanet | |
} | |
... on Droid { | |
primaryFunction | |
} | |
} | |
} | |
*/ | |
const node/*: ConcreteRequest*/ = (function(){ | |
var v0 = { | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "__typename", | |
"args": null, | |
"storageKey": null | |
}, | |
v1 = [ | |
(v0/*: any*/), | |
{ | |
"kind": "LinkedField", | |
"alias": null, | |
"name": "hero", | |
"storageKey": null, | |
"args": null, | |
"concreteType": null, | |
"plural": false, | |
"selections": [ | |
(v0/*: any*/), | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "name", | |
"args": null, | |
"storageKey": null | |
}, | |
{ | |
"kind": "InlineFragment", | |
"type": "Human", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "homePlanet", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
}, | |
{ | |
"kind": "InlineFragment", | |
"type": "Droid", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "primaryFunction", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
} | |
] | |
} | |
]; | |
return { | |
"kind": "Request", | |
"fragment": { | |
"kind": "Fragment", | |
"name": "trialQuery", | |
"type": "Query", | |
"metadata": null, | |
"argumentDefinitions": [], | |
"selections": (v1/*: any*/) | |
}, | |
"operation": { | |
"kind": "Operation", | |
"name": "trialQuery", | |
"argumentDefinitions": [], | |
"selections": (v1/*: any*/) | |
}, | |
"params": { | |
"operationKind": "query", | |
"name": "trialQuery", | |
"id": null, | |
"text": "query trialQuery {\n __typename\n hero {\n __typename\n name\n ... on Human {\n homePlanet\n }\n ... on Droid {\n primaryFunction\n }\n }\n}\n", | |
"metadata": {} | |
} | |
}; | |
})(); | |
// prettier-ignore | |
(node/*: any*/).hash = '2074f7e006475f525d7a7ac48cf213ff'; | |
module.exports = node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tslint:disable */ | |
import { ConcreteRequest } from "relay-runtime"; | |
export type trialQueryVariables = {}; | |
export type trialQueryResponse = { | |
readonly __typename: string; | |
readonly hero: { | |
readonly name: string; | |
readonly homePlanet?: string | null; | |
readonly primaryFunction?: string; | |
} & ({ | |
readonly homePlanet: string | null; | |
} | { | |
readonly primaryFunction: string; | |
} | { | |
/*This will never be '% other', but we need some | |
value in case none of the concrete values match.*/ | |
readonly __typename: "%other"; | |
}); | |
}; | |
export type trialQuery = { | |
readonly response: trialQueryResponse; | |
readonly variables: trialQueryVariables; | |
}; | |
/* | |
query trialQuery { | |
__typename | |
hero { | |
__typename | |
name | |
... on Human { | |
homePlanet | |
} | |
... on Droid { | |
primaryFunction | |
} | |
} | |
} | |
*/ | |
const node: ConcreteRequest = (function(){ | |
var v0 = { | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "__typename", | |
"args": null, | |
"storageKey": null | |
}, | |
v1 = { | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "name", | |
"args": null, | |
"storageKey": null | |
}, | |
v2 = { | |
"kind": "InlineFragment", | |
"type": "Human", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "homePlanet", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
}, | |
v3 = { | |
"kind": "InlineFragment", | |
"type": "Droid", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "primaryFunction", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
}; | |
return { | |
"kind": "Request", | |
"fragment": { | |
"kind": "Fragment", | |
"name": "trialQuery", | |
"type": "Query", | |
"metadata": null, | |
"argumentDefinitions": [], | |
"selections": [ | |
(v0/*: any*/), | |
{ | |
"kind": "LinkedField", | |
"alias": null, | |
"name": "hero", | |
"storageKey": null, | |
"args": null, | |
"concreteType": null, | |
"plural": false, | |
"selections": [ | |
(v1/*: any*/), | |
(v2/*: any*/), | |
(v3/*: any*/) | |
] | |
} | |
] | |
}, | |
"operation": { | |
"kind": "Operation", | |
"name": "trialQuery", | |
"argumentDefinitions": [], | |
"selections": [ | |
(v0/*: any*/), | |
{ | |
"kind": "LinkedField", | |
"alias": null, | |
"name": "hero", | |
"storageKey": null, | |
"args": null, | |
"concreteType": null, | |
"plural": false, | |
"selections": [ | |
(v0/*: any*/), | |
(v1/*: any*/), | |
(v2/*: any*/), | |
(v3/*: any*/) | |
] | |
} | |
] | |
}, | |
"params": { | |
"operationKind": "query", | |
"name": "trialQuery", | |
"id": null, | |
"text": "query trialQuery {\n __typename\n hero {\n __typename\n name\n ... on Human {\n homePlanet\n }\n ... on Droid {\n primaryFunction\n }\n }\n}\n", | |
"metadata": {} | |
} | |
}; | |
})(); | |
(node as any).hash = 'ec75b1c991c6d325943933a515164872'; | |
export default node; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* tslint:disable */ | |
import { ConcreteRequest } from "relay-runtime"; | |
export type trialQueryVariables = {}; | |
export type trialQueryResponse = { | |
readonly __typename: string; | |
readonly hero: { | |
readonly name: string; | |
readonly homePlanet?: string | null; | |
readonly primaryFunction?: string; | |
}; | |
}; | |
export type trialQuery = { | |
readonly response: trialQueryResponse; | |
readonly variables: trialQueryVariables; | |
}; | |
/* | |
query trialQuery { | |
__typename | |
hero { | |
__typename | |
name | |
... on Human { | |
homePlanet | |
} | |
... on Droid { | |
primaryFunction | |
} | |
} | |
} | |
*/ | |
const node: ConcreteRequest = (function(){ | |
var v0 = { | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "__typename", | |
"args": null, | |
"storageKey": null | |
}, | |
v1 = { | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "name", | |
"args": null, | |
"storageKey": null | |
}, | |
v2 = { | |
"kind": "InlineFragment", | |
"type": "Human", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "homePlanet", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
}, | |
v3 = { | |
"kind": "InlineFragment", | |
"type": "Droid", | |
"selections": [ | |
{ | |
"kind": "ScalarField", | |
"alias": null, | |
"name": "primaryFunction", | |
"args": null, | |
"storageKey": null | |
} | |
] | |
}; | |
return { | |
"kind": "Request", | |
"fragment": { | |
"kind": "Fragment", | |
"name": "trialQuery", | |
"type": "Query", | |
"metadata": null, | |
"argumentDefinitions": [], | |
"selections": [ | |
(v0/*: any*/), | |
{ | |
"kind": "LinkedField", | |
"alias": null, | |
"name": "hero", | |
"storageKey": null, | |
"args": null, | |
"concreteType": null, | |
"plural": false, | |
"selections": [ | |
(v1/*: any*/), | |
(v2/*: any*/), | |
(v3/*: any*/) | |
] | |
} | |
] | |
}, | |
"operation": { | |
"kind": "Operation", | |
"name": "trialQuery", | |
"argumentDefinitions": [], | |
"selections": [ | |
(v0/*: any*/), | |
{ | |
"kind": "LinkedField", | |
"alias": null, | |
"name": "hero", | |
"storageKey": null, | |
"args": null, | |
"concreteType": null, | |
"plural": false, | |
"selections": [ | |
(v0/*: any*/), | |
(v1/*: any*/), | |
(v2/*: any*/), | |
(v3/*: any*/) | |
] | |
} | |
] | |
}, | |
"params": { | |
"operationKind": "query", | |
"name": "trialQuery", | |
"id": null, | |
"text": "query trialQuery {\n __typename\n hero {\n __typename\n name\n ... on Human {\n homePlanet\n }\n ... on Droid {\n primaryFunction\n }\n }\n}\n", | |
"metadata": {} | |
} | |
}; | |
})(); | |
(node as any).hash = 'ec75b1c991c6d325943933a515164872'; | |
export default node; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment