react-relay 11.0.1 → 13.0.0-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +2 -3
- package/ReactRelayFragmentContainer.js.flow +24 -24
- package/ReactRelayFragmentMockRenderer.js.flow +1 -1
- package/ReactRelayLocalQueryRenderer.js.flow +6 -7
- package/ReactRelayPaginationContainer.js.flow +111 -58
- package/ReactRelayQueryFetcher.js.flow +9 -10
- package/ReactRelayQueryRenderer.js.flow +115 -81
- package/ReactRelayRefetchContainer.js.flow +41 -38
- package/ReactRelayTestMocker.js.flow +16 -14
- package/ReactRelayTypes.js.flow +10 -10
- package/RelayContext.js.flow +3 -3
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +1 -2
- package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +11 -7
- package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +10 -6
- package/__flowtests__/RelayModern-flowtest.js.flow +78 -46
- package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +4 -3
- package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +4 -3
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer.graphql.js.flow +72 -0
- package/__flowtests__/__generated__/ReactRelayFragmentContainerFlowtest_viewer2.graphql.js.flow +72 -0
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow +227 -0
- package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow +164 -0
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtestQuery.graphql.js.flow +227 -0
- package/__flowtests__/__generated__/ReactRelayRefetchContainerFlowtest_viewer.graphql.js.flow +164 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_badref.graphql.js.flow +66 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_notref.graphql.js.flow +66 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_user.graphql.js.flow +59 -0
- package/__flowtests__/__generated__/RelayModernFlowtest_users.graphql.js.flow +61 -0
- package/assertFragmentMap.js.flow +2 -2
- package/buildReactRelayContainer.js.flow +15 -12
- package/getRootVariablesForFragments.js.flow +2 -4
- package/hooks.js +1 -1
- package/hooks.js.flow +5 -6
- package/index.js +1 -1
- package/index.js.flow +6 -7
- package/jest-react/enqueueTask.js.flow +56 -0
- package/jest-react/index.js.flow +12 -0
- package/jest-react/internalAct.js.flow +139 -0
- package/legacy.js +1 -1
- package/lib/ReactRelayFragmentContainer.js +21 -15
- package/lib/ReactRelayFragmentMockRenderer.js +2 -2
- package/lib/ReactRelayLocalQueryRenderer.js +7 -8
- package/lib/ReactRelayPaginationContainer.js +96 -38
- package/lib/ReactRelayQueryFetcher.js +3 -3
- package/lib/ReactRelayQueryRenderer.js +86 -53
- package/lib/ReactRelayRefetchContainer.js +38 -25
- package/lib/ReactRelayTestMocker.js +8 -9
- package/lib/RelayContext.js +3 -2
- package/lib/assertFragmentMap.js +3 -2
- package/lib/buildReactRelayContainer.js +14 -11
- package/lib/getRootVariablesForFragments.js +1 -2
- package/lib/hooks.js +5 -5
- package/lib/index.js +7 -7
- package/lib/jest-react/enqueueTask.js +53 -0
- package/lib/jest-react/index.js +13 -0
- package/lib/jest-react/internalAct.js +116 -0
- package/lib/multi-actor/ActorChange.js +30 -0
- package/lib/multi-actor/index.js +11 -0
- package/lib/multi-actor/useRelayActorEnvironment.js +29 -0
- package/lib/relay-hooks/EntryPointContainer.react.js +3 -3
- package/lib/relay-hooks/FragmentResource.js +347 -92
- package/lib/relay-hooks/LRUCache.js +1 -1
- package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +4 -4
- package/lib/relay-hooks/MatchContainer.js +1 -1
- package/lib/relay-hooks/QueryResource.js +172 -29
- package/lib/relay-hooks/RelayEnvironmentProvider.js +5 -3
- package/lib/relay-hooks/SuspenseResource.js +130 -0
- package/lib/relay-hooks/loadQuery.js +42 -20
- package/lib/relay-hooks/preloadQuery_DEPRECATED.js +24 -15
- package/lib/relay-hooks/useBlockingPaginationFragment.js +4 -5
- package/lib/relay-hooks/useEntryPointLoader.js +2 -2
- package/lib/relay-hooks/useFetchTrackingRef.js +2 -1
- package/lib/relay-hooks/useFragment.js +8 -7
- package/lib/relay-hooks/useFragmentNode.js +4 -4
- package/lib/relay-hooks/useIsOperationNodeActive.js +3 -3
- package/lib/relay-hooks/useLazyLoadQuery.js +3 -3
- package/lib/relay-hooks/useLazyLoadQueryNode.js +10 -4
- package/lib/relay-hooks/useLoadMoreFunction.js +8 -12
- package/lib/relay-hooks/useMemoOperationDescriptor.js +2 -2
- package/lib/relay-hooks/useMemoVariables.js +2 -2
- package/lib/relay-hooks/useMutation.js +17 -6
- package/lib/relay-hooks/usePaginationFragment.js +2 -3
- package/lib/relay-hooks/usePreloadedQuery.js +8 -7
- package/lib/relay-hooks/useQueryLoader.js +30 -10
- package/lib/relay-hooks/useRefetchableFragmentNode.js +13 -17
- package/lib/relay-hooks/useRelayEnvironment.js +3 -3
- package/lib/relay-hooks/useStaticFragmentNodeWarning.js +2 -2
- package/lib/relay-hooks/useSubscribeToInvalidationState.js +2 -1
- package/lib/relay-hooks/useSubscription.js +10 -7
- package/multi-actor/ActorChange.js.flow +58 -0
- package/multi-actor/index.js.flow +14 -0
- package/multi-actor/useRelayActorEnvironment.js.flow +49 -0
- package/package.json +3 -2
- package/react-relay-hooks.js +2 -2
- package/react-relay-hooks.min.js +2 -2
- package/react-relay-legacy.js +2 -2
- package/react-relay-legacy.min.js +2 -2
- package/react-relay.js +2 -2
- package/react-relay.min.js +2 -2
- package/relay-hooks/EntryPointContainer.react.js.flow +8 -15
- package/relay-hooks/EntryPointTypes.flow.js.flow +24 -25
- package/relay-hooks/FragmentResource.js.flow +368 -94
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +32 -46
- package/relay-hooks/MatchContainer.js.flow +3 -2
- package/relay-hooks/QueryResource.js.flow +216 -25
- package/relay-hooks/RelayEnvironmentProvider.js.flow +14 -4
- package/relay-hooks/SuspenseResource.js.flow +115 -0
- package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +4 -3
- package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +1 -1
- package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +8 -7
- package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +10 -9
- package/relay-hooks/__flowtests__/utils.js.flow +8 -12
- package/relay-hooks/loadEntryPoint.js.flow +6 -12
- package/relay-hooks/loadQuery.js.flow +49 -31
- package/relay-hooks/preloadQuery_DEPRECATED.js.flow +30 -21
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +6 -12
- package/relay-hooks/useBlockingPaginationFragment.js.flow +13 -11
- package/relay-hooks/useEntryPointLoader.js.flow +7 -10
- package/relay-hooks/useFetchTrackingRef.js.flow +2 -2
- package/relay-hooks/useFragment.js.flow +26 -46
- package/relay-hooks/useFragmentNode.js.flow +5 -7
- package/relay-hooks/useIsOperationNodeActive.js.flow +3 -5
- package/relay-hooks/useIsParentQueryActive.js.flow +3 -4
- package/relay-hooks/useLazyLoadQuery.js.flow +9 -10
- package/relay-hooks/useLazyLoadQueryNode.js.flow +19 -13
- package/relay-hooks/useLoadMoreFunction.js.flow +20 -29
- package/relay-hooks/useMemoOperationDescriptor.js.flow +5 -7
- package/relay-hooks/useMemoVariables.js.flow +6 -6
- package/relay-hooks/useMutation.js.flow +26 -26
- package/relay-hooks/usePaginationFragment.js.flow +38 -44
- package/relay-hooks/usePreloadedQuery.js.flow +18 -14
- package/relay-hooks/useQueryLoader.js.flow +41 -22
- package/relay-hooks/useRefetchableFragment.js.flow +7 -8
- package/relay-hooks/useRefetchableFragmentNode.js.flow +24 -32
- package/relay-hooks/useRelayEnvironment.js.flow +2 -4
- package/relay-hooks/useStaticFragmentNodeWarning.js.flow +2 -3
- package/relay-hooks/useSubscribeToInvalidationState.js.flow +3 -6
- package/relay-hooks/useSubscription.js.flow +20 -10
- package/lib/relay-hooks/getPaginationMetadata.js +0 -41
- package/lib/relay-hooks/getPaginationVariables.js +0 -67
- package/lib/relay-hooks/getRefetchMetadata.js +0 -36
- package/lib/relay-hooks/getValueAtPath.js +0 -51
- package/relay-hooks/getPaginationMetadata.js.flow +0 -74
- package/relay-hooks/getPaginationVariables.js.flow +0 -110
- package/relay-hooks/getRefetchMetadata.js.flow +0 -80
- package/relay-hooks/getValueAtPath.js.flow +0 -46
package/__flowtests__/__generated__/ReactRelayPaginationContainerFlowtest_viewer.graphql.js.flow
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*
|
7
|
+
* @generated SignedSource<<2d73f66797fb376dd27de9625c67deac>>
|
8
|
+
* @flow
|
9
|
+
* @lightSyntaxTransform
|
10
|
+
* @nogrep
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* eslint-disable */
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
/*::
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayPaginationContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$ref = ReactRelayPaginationContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$data = {|
|
23
|
+
+account_user: ?{|
|
24
|
+
+friends: ?{|
|
25
|
+
+edges: ?$ReadOnlyArray<?{|
|
26
|
+
+node: ?{|
|
27
|
+
+__typename: string,
|
28
|
+
|},
|
29
|
+
|}>,
|
30
|
+
|},
|
31
|
+
|},
|
32
|
+
+$fragmentType: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
33
|
+
|};
|
34
|
+
export type ReactRelayPaginationContainerFlowtest_viewer = ReactRelayPaginationContainerFlowtest_viewer$data;
|
35
|
+
export type ReactRelayPaginationContainerFlowtest_viewer$key = {
|
36
|
+
+$data?: ReactRelayPaginationContainerFlowtest_viewer$data,
|
37
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
38
|
+
...
|
39
|
+
};
|
40
|
+
*/
|
41
|
+
|
42
|
+
var node/*: ReaderFragment*/ = {
|
43
|
+
"argumentDefinitions": [
|
44
|
+
{
|
45
|
+
"kind": "RootArgument",
|
46
|
+
"name": "count"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"kind": "RootArgument",
|
50
|
+
"name": "cursor"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"kind": "Fragment",
|
54
|
+
"metadata": {
|
55
|
+
"connection": [
|
56
|
+
{
|
57
|
+
"count": "count",
|
58
|
+
"cursor": "cursor",
|
59
|
+
"direction": "forward",
|
60
|
+
"path": [
|
61
|
+
"account_user",
|
62
|
+
"friends"
|
63
|
+
]
|
64
|
+
}
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"name": "ReactRelayPaginationContainerFlowtest_viewer",
|
68
|
+
"selections": [
|
69
|
+
{
|
70
|
+
"alias": null,
|
71
|
+
"args": null,
|
72
|
+
"concreteType": "User",
|
73
|
+
"kind": "LinkedField",
|
74
|
+
"name": "account_user",
|
75
|
+
"plural": false,
|
76
|
+
"selections": [
|
77
|
+
{
|
78
|
+
"alias": "friends",
|
79
|
+
"args": null,
|
80
|
+
"concreteType": "FriendsConnection",
|
81
|
+
"kind": "LinkedField",
|
82
|
+
"name": "__ReactRelayPaginationContainerFlowtest_viewer__friends_connection",
|
83
|
+
"plural": false,
|
84
|
+
"selections": [
|
85
|
+
{
|
86
|
+
"alias": null,
|
87
|
+
"args": null,
|
88
|
+
"concreteType": "FriendsEdge",
|
89
|
+
"kind": "LinkedField",
|
90
|
+
"name": "edges",
|
91
|
+
"plural": true,
|
92
|
+
"selections": [
|
93
|
+
{
|
94
|
+
"alias": null,
|
95
|
+
"args": null,
|
96
|
+
"concreteType": "User",
|
97
|
+
"kind": "LinkedField",
|
98
|
+
"name": "node",
|
99
|
+
"plural": false,
|
100
|
+
"selections": [
|
101
|
+
{
|
102
|
+
"alias": null,
|
103
|
+
"args": null,
|
104
|
+
"kind": "ScalarField",
|
105
|
+
"name": "__typename",
|
106
|
+
"storageKey": null
|
107
|
+
}
|
108
|
+
],
|
109
|
+
"storageKey": null
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"alias": null,
|
113
|
+
"args": null,
|
114
|
+
"kind": "ScalarField",
|
115
|
+
"name": "cursor",
|
116
|
+
"storageKey": null
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"storageKey": null
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"alias": null,
|
123
|
+
"args": null,
|
124
|
+
"concreteType": "PageInfo",
|
125
|
+
"kind": "LinkedField",
|
126
|
+
"name": "pageInfo",
|
127
|
+
"plural": false,
|
128
|
+
"selections": [
|
129
|
+
{
|
130
|
+
"alias": null,
|
131
|
+
"args": null,
|
132
|
+
"kind": "ScalarField",
|
133
|
+
"name": "endCursor",
|
134
|
+
"storageKey": null
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"alias": null,
|
138
|
+
"args": null,
|
139
|
+
"kind": "ScalarField",
|
140
|
+
"name": "hasNextPage",
|
141
|
+
"storageKey": null
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"storageKey": null
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"storageKey": null
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"storageKey": null
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"type": "Viewer",
|
154
|
+
"abstractKey": null
|
155
|
+
};
|
156
|
+
|
157
|
+
if (__DEV__) {
|
158
|
+
(node/*: any*/).hash = "0db8995009ebfee6165f6bbaa465d13f";
|
159
|
+
}
|
160
|
+
|
161
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
162
|
+
ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
163
|
+
ReactRelayPaginationContainerFlowtest_viewer$data,
|
164
|
+
>*/);
|
@@ -0,0 +1,227 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*
|
7
|
+
* @generated SignedSource<<d42e37dc6a0fb5b60070a2beb019d93c>>
|
8
|
+
* @flow
|
9
|
+
* @lightSyntaxTransform
|
10
|
+
* @nogrep
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* eslint-disable */
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
/*::
|
18
|
+
import type { ConcreteRequest, Query } from 'relay-runtime';
|
19
|
+
type ReactRelayRefetchContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayRefetchContainerFlowtestQuery$variables = {|
|
21
|
+
count: number,
|
22
|
+
cursor?: ?string,
|
23
|
+
|};
|
24
|
+
export type ReactRelayRefetchContainerFlowtestQueryVariables = ReactRelayRefetchContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayRefetchContainerFlowtestQuery$data = {|
|
26
|
+
+viewer: ?{|
|
27
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
28
|
+
|},
|
29
|
+
|};
|
30
|
+
export type ReactRelayRefetchContainerFlowtestQueryResponse = ReactRelayRefetchContainerFlowtestQuery$data;
|
31
|
+
export type ReactRelayRefetchContainerFlowtestQuery = {|
|
32
|
+
variables: ReactRelayRefetchContainerFlowtestQueryVariables,
|
33
|
+
response: ReactRelayRefetchContainerFlowtestQuery$data,
|
34
|
+
|};
|
35
|
+
*/
|
36
|
+
|
37
|
+
var node/*: ConcreteRequest*/ = (function(){
|
38
|
+
var v0 = [
|
39
|
+
{
|
40
|
+
"defaultValue": null,
|
41
|
+
"kind": "LocalArgument",
|
42
|
+
"name": "count"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"defaultValue": null,
|
46
|
+
"kind": "LocalArgument",
|
47
|
+
"name": "cursor"
|
48
|
+
}
|
49
|
+
],
|
50
|
+
v1 = [
|
51
|
+
{
|
52
|
+
"kind": "Variable",
|
53
|
+
"name": "after",
|
54
|
+
"variableName": "cursor"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"kind": "Variable",
|
58
|
+
"name": "first",
|
59
|
+
"variableName": "count"
|
60
|
+
}
|
61
|
+
],
|
62
|
+
v2 = {
|
63
|
+
"alias": null,
|
64
|
+
"args": null,
|
65
|
+
"kind": "ScalarField",
|
66
|
+
"name": "id",
|
67
|
+
"storageKey": null
|
68
|
+
};
|
69
|
+
return {
|
70
|
+
"fragment": {
|
71
|
+
"argumentDefinitions": (v0/*: any*/),
|
72
|
+
"kind": "Fragment",
|
73
|
+
"metadata": null,
|
74
|
+
"name": "ReactRelayRefetchContainerFlowtestQuery",
|
75
|
+
"selections": [
|
76
|
+
{
|
77
|
+
"alias": null,
|
78
|
+
"args": null,
|
79
|
+
"concreteType": "Viewer",
|
80
|
+
"kind": "LinkedField",
|
81
|
+
"name": "viewer",
|
82
|
+
"plural": false,
|
83
|
+
"selections": [
|
84
|
+
{
|
85
|
+
"args": null,
|
86
|
+
"kind": "FragmentSpread",
|
87
|
+
"name": "ReactRelayRefetchContainerFlowtest_viewer"
|
88
|
+
}
|
89
|
+
],
|
90
|
+
"storageKey": null
|
91
|
+
}
|
92
|
+
],
|
93
|
+
"type": "Query",
|
94
|
+
"abstractKey": null
|
95
|
+
},
|
96
|
+
"kind": "Request",
|
97
|
+
"operation": {
|
98
|
+
"argumentDefinitions": (v0/*: any*/),
|
99
|
+
"kind": "Operation",
|
100
|
+
"name": "ReactRelayRefetchContainerFlowtestQuery",
|
101
|
+
"selections": [
|
102
|
+
{
|
103
|
+
"alias": null,
|
104
|
+
"args": null,
|
105
|
+
"concreteType": "Viewer",
|
106
|
+
"kind": "LinkedField",
|
107
|
+
"name": "viewer",
|
108
|
+
"plural": false,
|
109
|
+
"selections": [
|
110
|
+
{
|
111
|
+
"alias": null,
|
112
|
+
"args": null,
|
113
|
+
"concreteType": "User",
|
114
|
+
"kind": "LinkedField",
|
115
|
+
"name": "account_user",
|
116
|
+
"plural": false,
|
117
|
+
"selections": [
|
118
|
+
{
|
119
|
+
"alias": null,
|
120
|
+
"args": (v1/*: any*/),
|
121
|
+
"concreteType": "FriendsConnection",
|
122
|
+
"kind": "LinkedField",
|
123
|
+
"name": "friends",
|
124
|
+
"plural": false,
|
125
|
+
"selections": [
|
126
|
+
{
|
127
|
+
"alias": null,
|
128
|
+
"args": null,
|
129
|
+
"concreteType": "FriendsEdge",
|
130
|
+
"kind": "LinkedField",
|
131
|
+
"name": "edges",
|
132
|
+
"plural": true,
|
133
|
+
"selections": [
|
134
|
+
{
|
135
|
+
"alias": null,
|
136
|
+
"args": null,
|
137
|
+
"concreteType": "User",
|
138
|
+
"kind": "LinkedField",
|
139
|
+
"name": "node",
|
140
|
+
"plural": false,
|
141
|
+
"selections": [
|
142
|
+
{
|
143
|
+
"alias": null,
|
144
|
+
"args": null,
|
145
|
+
"kind": "ScalarField",
|
146
|
+
"name": "__typename",
|
147
|
+
"storageKey": null
|
148
|
+
},
|
149
|
+
(v2/*: any*/)
|
150
|
+
],
|
151
|
+
"storageKey": null
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"alias": null,
|
155
|
+
"args": null,
|
156
|
+
"kind": "ScalarField",
|
157
|
+
"name": "cursor",
|
158
|
+
"storageKey": null
|
159
|
+
}
|
160
|
+
],
|
161
|
+
"storageKey": null
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"alias": null,
|
165
|
+
"args": null,
|
166
|
+
"concreteType": "PageInfo",
|
167
|
+
"kind": "LinkedField",
|
168
|
+
"name": "pageInfo",
|
169
|
+
"plural": false,
|
170
|
+
"selections": [
|
171
|
+
{
|
172
|
+
"alias": null,
|
173
|
+
"args": null,
|
174
|
+
"kind": "ScalarField",
|
175
|
+
"name": "endCursor",
|
176
|
+
"storageKey": null
|
177
|
+
},
|
178
|
+
{
|
179
|
+
"alias": null,
|
180
|
+
"args": null,
|
181
|
+
"kind": "ScalarField",
|
182
|
+
"name": "hasNextPage",
|
183
|
+
"storageKey": null
|
184
|
+
}
|
185
|
+
],
|
186
|
+
"storageKey": null
|
187
|
+
}
|
188
|
+
],
|
189
|
+
"storageKey": null
|
190
|
+
},
|
191
|
+
{
|
192
|
+
"alias": null,
|
193
|
+
"args": (v1/*: any*/),
|
194
|
+
"filters": null,
|
195
|
+
"handle": "connection",
|
196
|
+
"key": "ReactRelayRefetchContainerFlowtest_viewer__friends",
|
197
|
+
"kind": "LinkedHandle",
|
198
|
+
"name": "friends"
|
199
|
+
},
|
200
|
+
(v2/*: any*/)
|
201
|
+
],
|
202
|
+
"storageKey": null
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"storageKey": null
|
206
|
+
}
|
207
|
+
]
|
208
|
+
},
|
209
|
+
"params": {
|
210
|
+
"cacheID": "2c993e435c65f2471f48b4e92f6fb3cb",
|
211
|
+
"id": null,
|
212
|
+
"metadata": {},
|
213
|
+
"name": "ReactRelayRefetchContainerFlowtestQuery",
|
214
|
+
"operationKind": "query",
|
215
|
+
"text": "query ReactRelayRefetchContainerFlowtestQuery(\n $count: Int!\n $cursor: ID\n) {\n viewer {\n ...ReactRelayRefetchContainerFlowtest_viewer\n }\n}\n\nfragment ReactRelayRefetchContainerFlowtest_viewer on Viewer {\n account_user {\n friends(after: $cursor, first: $count) {\n edges {\n node {\n __typename\n id\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n }\n}\n"
|
216
|
+
}
|
217
|
+
};
|
218
|
+
})();
|
219
|
+
|
220
|
+
if (__DEV__) {
|
221
|
+
(node/*: any*/).hash = "ce05ae9de6327d14ff0f3813ec77e594";
|
222
|
+
}
|
223
|
+
|
224
|
+
module.exports = ((node/*: any*/)/*: Query<
|
225
|
+
ReactRelayRefetchContainerFlowtestQuery$variables,
|
226
|
+
ReactRelayRefetchContainerFlowtestQuery$data,
|
227
|
+
>*/);
|
@@ -0,0 +1,164 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*
|
7
|
+
* @generated SignedSource<<343eb8b15c596ab2aeccd2e9c65aacc8>>
|
8
|
+
* @flow
|
9
|
+
* @lightSyntaxTransform
|
10
|
+
* @nogrep
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* eslint-disable */
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
/*::
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
import type { FragmentType } from "relay-runtime";
|
20
|
+
declare export opaque type ReactRelayRefetchContainerFlowtest_viewer$fragmentType: FragmentType;
|
21
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$ref = ReactRelayRefetchContainerFlowtest_viewer$fragmentType;
|
22
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$data = {|
|
23
|
+
+account_user: ?{|
|
24
|
+
+friends: ?{|
|
25
|
+
+edges: ?$ReadOnlyArray<?{|
|
26
|
+
+node: ?{|
|
27
|
+
+__typename: string,
|
28
|
+
|},
|
29
|
+
|}>,
|
30
|
+
|},
|
31
|
+
|},
|
32
|
+
+$fragmentType: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
33
|
+
|};
|
34
|
+
export type ReactRelayRefetchContainerFlowtest_viewer = ReactRelayRefetchContainerFlowtest_viewer$data;
|
35
|
+
export type ReactRelayRefetchContainerFlowtest_viewer$key = {
|
36
|
+
+$data?: ReactRelayRefetchContainerFlowtest_viewer$data,
|
37
|
+
+$fragmentSpreads: ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
38
|
+
...
|
39
|
+
};
|
40
|
+
*/
|
41
|
+
|
42
|
+
var node/*: ReaderFragment*/ = {
|
43
|
+
"argumentDefinitions": [
|
44
|
+
{
|
45
|
+
"kind": "RootArgument",
|
46
|
+
"name": "count"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"kind": "RootArgument",
|
50
|
+
"name": "cursor"
|
51
|
+
}
|
52
|
+
],
|
53
|
+
"kind": "Fragment",
|
54
|
+
"metadata": {
|
55
|
+
"connection": [
|
56
|
+
{
|
57
|
+
"count": "count",
|
58
|
+
"cursor": "cursor",
|
59
|
+
"direction": "forward",
|
60
|
+
"path": [
|
61
|
+
"account_user",
|
62
|
+
"friends"
|
63
|
+
]
|
64
|
+
}
|
65
|
+
]
|
66
|
+
},
|
67
|
+
"name": "ReactRelayRefetchContainerFlowtest_viewer",
|
68
|
+
"selections": [
|
69
|
+
{
|
70
|
+
"alias": null,
|
71
|
+
"args": null,
|
72
|
+
"concreteType": "User",
|
73
|
+
"kind": "LinkedField",
|
74
|
+
"name": "account_user",
|
75
|
+
"plural": false,
|
76
|
+
"selections": [
|
77
|
+
{
|
78
|
+
"alias": "friends",
|
79
|
+
"args": null,
|
80
|
+
"concreteType": "FriendsConnection",
|
81
|
+
"kind": "LinkedField",
|
82
|
+
"name": "__ReactRelayRefetchContainerFlowtest_viewer__friends_connection",
|
83
|
+
"plural": false,
|
84
|
+
"selections": [
|
85
|
+
{
|
86
|
+
"alias": null,
|
87
|
+
"args": null,
|
88
|
+
"concreteType": "FriendsEdge",
|
89
|
+
"kind": "LinkedField",
|
90
|
+
"name": "edges",
|
91
|
+
"plural": true,
|
92
|
+
"selections": [
|
93
|
+
{
|
94
|
+
"alias": null,
|
95
|
+
"args": null,
|
96
|
+
"concreteType": "User",
|
97
|
+
"kind": "LinkedField",
|
98
|
+
"name": "node",
|
99
|
+
"plural": false,
|
100
|
+
"selections": [
|
101
|
+
{
|
102
|
+
"alias": null,
|
103
|
+
"args": null,
|
104
|
+
"kind": "ScalarField",
|
105
|
+
"name": "__typename",
|
106
|
+
"storageKey": null
|
107
|
+
}
|
108
|
+
],
|
109
|
+
"storageKey": null
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"alias": null,
|
113
|
+
"args": null,
|
114
|
+
"kind": "ScalarField",
|
115
|
+
"name": "cursor",
|
116
|
+
"storageKey": null
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"storageKey": null
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"alias": null,
|
123
|
+
"args": null,
|
124
|
+
"concreteType": "PageInfo",
|
125
|
+
"kind": "LinkedField",
|
126
|
+
"name": "pageInfo",
|
127
|
+
"plural": false,
|
128
|
+
"selections": [
|
129
|
+
{
|
130
|
+
"alias": null,
|
131
|
+
"args": null,
|
132
|
+
"kind": "ScalarField",
|
133
|
+
"name": "endCursor",
|
134
|
+
"storageKey": null
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"alias": null,
|
138
|
+
"args": null,
|
139
|
+
"kind": "ScalarField",
|
140
|
+
"name": "hasNextPage",
|
141
|
+
"storageKey": null
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"storageKey": null
|
145
|
+
}
|
146
|
+
],
|
147
|
+
"storageKey": null
|
148
|
+
}
|
149
|
+
],
|
150
|
+
"storageKey": null
|
151
|
+
}
|
152
|
+
],
|
153
|
+
"type": "Viewer",
|
154
|
+
"abstractKey": null
|
155
|
+
};
|
156
|
+
|
157
|
+
if (__DEV__) {
|
158
|
+
(node/*: any*/).hash = "cf098b4248d8ddfacfc0d356838697bb";
|
159
|
+
}
|
160
|
+
|
161
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
162
|
+
ReactRelayRefetchContainerFlowtest_viewer$fragmentType,
|
163
|
+
ReactRelayRefetchContainerFlowtest_viewer$data,
|
164
|
+
>*/);
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*
|
7
|
+
* @generated SignedSource<<2e6de02332132a03de07b1bee9c8ceac>>
|
8
|
+
* @flow
|
9
|
+
* @lightSyntaxTransform
|
10
|
+
* @nogrep
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* eslint-disable */
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
/*::
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
type RelayModernFlowtest_user$fragmentType = any;
|
20
|
+
import type { FragmentType } from "relay-runtime";
|
21
|
+
declare export opaque type RelayModernFlowtest_badref$fragmentType: FragmentType;
|
22
|
+
export type RelayModernFlowtest_badref$ref = RelayModernFlowtest_badref$fragmentType;
|
23
|
+
export type RelayModernFlowtest_badref$data = {|
|
24
|
+
+id: string,
|
25
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
26
|
+
+$fragmentType: RelayModernFlowtest_badref$fragmentType,
|
27
|
+
|};
|
28
|
+
export type RelayModernFlowtest_badref = RelayModernFlowtest_badref$data;
|
29
|
+
export type RelayModernFlowtest_badref$key = {
|
30
|
+
+$data?: RelayModernFlowtest_badref$data,
|
31
|
+
+$fragmentSpreads: RelayModernFlowtest_badref$fragmentType,
|
32
|
+
...
|
33
|
+
};
|
34
|
+
*/
|
35
|
+
|
36
|
+
var node/*: ReaderFragment*/ = {
|
37
|
+
"argumentDefinitions": [],
|
38
|
+
"kind": "Fragment",
|
39
|
+
"metadata": null,
|
40
|
+
"name": "RelayModernFlowtest_badref",
|
41
|
+
"selections": [
|
42
|
+
{
|
43
|
+
"alias": null,
|
44
|
+
"args": null,
|
45
|
+
"kind": "ScalarField",
|
46
|
+
"name": "id",
|
47
|
+
"storageKey": null
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"args": null,
|
51
|
+
"kind": "FragmentSpread",
|
52
|
+
"name": "RelayModernFlowtest_user"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"type": "User",
|
56
|
+
"abstractKey": null
|
57
|
+
};
|
58
|
+
|
59
|
+
if (__DEV__) {
|
60
|
+
(node/*: any*/).hash = "a04dc2854770919bd070bdc717de7812";
|
61
|
+
}
|
62
|
+
|
63
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
64
|
+
RelayModernFlowtest_badref$fragmentType,
|
65
|
+
RelayModernFlowtest_badref$data,
|
66
|
+
>*/);
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
3
|
+
*
|
4
|
+
* This source code is licensed under the MIT license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*
|
7
|
+
* @generated SignedSource<<8cfc221caf8236a8279a0b578a4c03a3>>
|
8
|
+
* @flow
|
9
|
+
* @lightSyntaxTransform
|
10
|
+
* @nogrep
|
11
|
+
*/
|
12
|
+
|
13
|
+
/* eslint-disable */
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
/*::
|
18
|
+
import type { Fragment, ReaderFragment } from 'relay-runtime';
|
19
|
+
type RelayModernFlowtest_user$fragmentType = any;
|
20
|
+
import type { FragmentType } from "relay-runtime";
|
21
|
+
declare export opaque type RelayModernFlowtest_notref$fragmentType: FragmentType;
|
22
|
+
export type RelayModernFlowtest_notref$ref = RelayModernFlowtest_notref$fragmentType;
|
23
|
+
export type RelayModernFlowtest_notref$data = {|
|
24
|
+
+id: string,
|
25
|
+
+$fragmentSpreads: RelayModernFlowtest_user$fragmentType,
|
26
|
+
+$fragmentType: RelayModernFlowtest_notref$fragmentType,
|
27
|
+
|};
|
28
|
+
export type RelayModernFlowtest_notref = RelayModernFlowtest_notref$data;
|
29
|
+
export type RelayModernFlowtest_notref$key = {
|
30
|
+
+$data?: RelayModernFlowtest_notref$data,
|
31
|
+
+$fragmentSpreads: RelayModernFlowtest_notref$fragmentType,
|
32
|
+
...
|
33
|
+
};
|
34
|
+
*/
|
35
|
+
|
36
|
+
var node/*: ReaderFragment*/ = {
|
37
|
+
"argumentDefinitions": [],
|
38
|
+
"kind": "Fragment",
|
39
|
+
"metadata": null,
|
40
|
+
"name": "RelayModernFlowtest_notref",
|
41
|
+
"selections": [
|
42
|
+
{
|
43
|
+
"alias": null,
|
44
|
+
"args": null,
|
45
|
+
"kind": "ScalarField",
|
46
|
+
"name": "id",
|
47
|
+
"storageKey": null
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"args": null,
|
51
|
+
"kind": "FragmentSpread",
|
52
|
+
"name": "RelayModernFlowtest_user"
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"type": "User",
|
56
|
+
"abstractKey": null
|
57
|
+
};
|
58
|
+
|
59
|
+
if (__DEV__) {
|
60
|
+
(node/*: any*/).hash = "d61c43d07b2fe8f623c9b84fcdf70ac8";
|
61
|
+
}
|
62
|
+
|
63
|
+
module.exports = ((node/*: any*/)/*: Fragment<
|
64
|
+
RelayModernFlowtest_notref$fragmentType,
|
65
|
+
RelayModernFlowtest_notref$data,
|
66
|
+
>*/);
|