react-relay 11.0.2 → 13.0.0-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +47 -0
- package/ReactRelayContainerUtils.js.flow +1 -1
- package/ReactRelayContext.js +1 -1
- package/ReactRelayContext.js.flow +3 -4
- package/ReactRelayFragmentContainer.js.flow +25 -25
- package/ReactRelayFragmentMockRenderer.js.flow +2 -2
- package/ReactRelayLocalQueryRenderer.js.flow +7 -8
- package/ReactRelayPaginationContainer.js.flow +112 -59
- package/ReactRelayQueryFetcher.js.flow +10 -11
- package/ReactRelayQueryRenderer.js.flow +116 -82
- package/ReactRelayQueryRendererContext.js.flow +1 -1
- package/ReactRelayRefetchContainer.js.flow +42 -39
- package/ReactRelayTestMocker.js.flow +17 -15
- package/ReactRelayTypes.js.flow +11 -11
- package/RelayContext.js.flow +4 -4
- package/__flowtests__/ReactRelayFragmentContainer-flowtest.js.flow +2 -3
- package/__flowtests__/ReactRelayPaginationContainer-flowtest.js.flow +12 -8
- package/__flowtests__/ReactRelayRefetchContainer-flowtest.js.flow +11 -7
- package/__flowtests__/RelayModern-flowtest.js.flow +79 -47
- package/__flowtests__/RelayModernFlowtest_badref.graphql.js.flow +6 -5
- package/__flowtests__/RelayModernFlowtest_notref.graphql.js.flow +6 -5
- package/__flowtests__/RelayModernFlowtest_user.graphql.js.flow +5 -4
- package/__flowtests__/RelayModernFlowtest_users.graphql.js.flow +5 -4
- 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 +3 -3
- package/buildReactRelayContainer.js.flow +12 -11
- package/getRootVariablesForFragments.js.flow +3 -5
- package/hooks.js +1 -1
- package/hooks.js.flow +6 -7
- package/index.js +1 -1
- package/index.js.flow +7 -8
- package/isRelayEnvironment.js.flow +1 -1
- package/jest-react/enqueueTask.js.flow +56 -0
- package/jest-react/index.js.flow +12 -0
- package/jest-react/internalAct.js.flow +138 -0
- package/legacy.js +1 -1
- package/legacy.js.flow +1 -1
- package/lib/ReactRelayContainerUtils.js +1 -1
- package/lib/ReactRelayContext.js +1 -1
- package/lib/ReactRelayFragmentContainer.js +22 -16
- package/lib/ReactRelayFragmentMockRenderer.js +3 -3
- package/lib/ReactRelayLocalQueryRenderer.js +8 -9
- package/lib/ReactRelayPaginationContainer.js +97 -39
- package/lib/ReactRelayQueryFetcher.js +3 -3
- package/lib/ReactRelayQueryRenderer.js +87 -54
- package/lib/ReactRelayQueryRendererContext.js +1 -1
- package/lib/ReactRelayRefetchContainer.js +39 -26
- package/lib/ReactRelayTestMocker.js +8 -9
- package/lib/ReactRelayTypes.js +1 -1
- package/lib/RelayContext.js +4 -3
- package/lib/assertFragmentMap.js +3 -2
- package/lib/buildReactRelayContainer.js +8 -8
- package/lib/getRootVariablesForFragments.js +2 -3
- package/lib/hooks.js +6 -6
- package/lib/index.js +8 -8
- package/lib/isRelayEnvironment.js +1 -1
- package/lib/jest-react/enqueueTask.js +53 -0
- package/lib/jest-react/index.js +13 -0
- package/lib/jest-react/internalAct.js +115 -0
- package/lib/legacy.js +1 -1
- 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/readContext.js +1 -1
- package/lib/relay-hooks/EntryPointContainer.react.js +4 -4
- package/lib/relay-hooks/EntryPointTypes.flow.js +1 -1
- package/lib/relay-hooks/FragmentResource.js +342 -89
- package/lib/relay-hooks/InternalLogger.js +1 -1
- package/lib/relay-hooks/LRUCache.js +1 -1
- package/lib/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js +5 -5
- package/lib/relay-hooks/MatchContainer.js +2 -2
- package/lib/relay-hooks/ProfilerContext.js +1 -1
- package/lib/relay-hooks/QueryResource.js +172 -29
- package/lib/relay-hooks/RelayEnvironmentProvider.js +6 -4
- package/lib/relay-hooks/SuspenseResource.js +130 -0
- package/lib/relay-hooks/loadEntryPoint.js +1 -1
- package/lib/relay-hooks/loadQuery.js +42 -20
- package/lib/relay-hooks/preloadQuery_DEPRECATED.js +25 -16
- package/lib/relay-hooks/prepareEntryPoint_DEPRECATED.js +1 -1
- package/lib/relay-hooks/useBlockingPaginationFragment.js +5 -6
- package/lib/relay-hooks/useEntryPointLoader.js +3 -3
- package/lib/relay-hooks/useFetchTrackingRef.js +3 -2
- package/lib/relay-hooks/useFragment.js +7 -7
- package/lib/relay-hooks/useFragmentNode.js +5 -5
- package/lib/relay-hooks/useIsMountedRef.js +1 -1
- package/lib/relay-hooks/useIsOperationNodeActive.js +3 -3
- package/lib/relay-hooks/useIsParentQueryActive.js +1 -1
- package/lib/relay-hooks/useLazyLoadQuery.js +4 -4
- package/lib/relay-hooks/useLazyLoadQueryNode.js +11 -5
- package/lib/relay-hooks/useLoadMoreFunction.js +9 -13
- package/lib/relay-hooks/useMemoOperationDescriptor.js +3 -3
- package/lib/relay-hooks/useMemoVariables.js +3 -3
- package/lib/relay-hooks/useMutation.js +18 -7
- package/lib/relay-hooks/usePaginationFragment.js +3 -4
- package/lib/relay-hooks/usePreloadedQuery.js +6 -6
- package/lib/relay-hooks/useQueryLoader.js +31 -11
- package/lib/relay-hooks/useRefetchableFragment.js +1 -1
- package/lib/relay-hooks/useRefetchableFragmentNode.js +14 -18
- package/lib/relay-hooks/useRelayEnvironment.js +3 -3
- package/lib/relay-hooks/useStaticFragmentNodeWarning.js +3 -3
- package/lib/relay-hooks/useSubscribeToInvalidationState.js +3 -2
- package/lib/relay-hooks/useSubscription.js +11 -8
- 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 -3
- 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/readContext.js.flow +1 -1
- package/relay-hooks/EntryPointContainer.react.js.flow +9 -16
- package/relay-hooks/EntryPointTypes.flow.js.flow +25 -26
- package/relay-hooks/FragmentResource.js.flow +359 -93
- package/relay-hooks/InternalLogger.js.flow +1 -1
- package/relay-hooks/LRUCache.js.flow +1 -1
- package/relay-hooks/LazyLoadEntryPointContainer_DEPRECATED.react.js.flow +33 -47
- package/relay-hooks/MatchContainer.js.flow +4 -3
- package/relay-hooks/ProfilerContext.js.flow +1 -1
- package/relay-hooks/QueryResource.js.flow +217 -26
- package/relay-hooks/RelayEnvironmentProvider.js.flow +15 -5
- package/relay-hooks/SuspenseResource.js.flow +115 -0
- package/relay-hooks/__flowtests__/EntryPointTypes/EntryPointElementConfig-flowtest.js.flow +5 -4
- package/relay-hooks/__flowtests__/EntryPointTypes/NestedEntrypoints-flowtest.js.flow +2 -2
- package/relay-hooks/__flowtests__/__generated__/useFragmentFlowtest_user.graphql.js.flow +59 -0
- package/relay-hooks/__flowtests__/__generated__/useFragmentFlowtest_users.graphql.js.flow +61 -0
- package/relay-hooks/__flowtests__/useBlockingPaginationFragment-flowtest.js.flow +11 -10
- package/relay-hooks/__flowtests__/useFragment-flowtest.js.flow +55 -32
- package/relay-hooks/__flowtests__/usePaginationFragment-flowtest.js.flow +11 -10
- package/relay-hooks/__flowtests__/useRefetchableFragment-flowtest.js.flow +11 -10
- package/relay-hooks/__flowtests__/utils.js.flow +21 -32
- package/relay-hooks/loadEntryPoint.js.flow +7 -13
- package/relay-hooks/loadQuery.js.flow +50 -32
- package/relay-hooks/preloadQuery_DEPRECATED.js.flow +31 -22
- package/relay-hooks/prepareEntryPoint_DEPRECATED.js.flow +7 -13
- package/relay-hooks/useBlockingPaginationFragment.js.flow +14 -12
- package/relay-hooks/useEntryPointLoader.js.flow +8 -11
- package/relay-hooks/useFetchTrackingRef.js.flow +3 -3
- package/relay-hooks/useFragment.js.flow +31 -62
- package/relay-hooks/useFragmentNode.js.flow +6 -8
- package/relay-hooks/useIsMountedRef.js.flow +1 -1
- package/relay-hooks/useIsOperationNodeActive.js.flow +4 -6
- package/relay-hooks/useIsParentQueryActive.js.flow +4 -5
- package/relay-hooks/useLazyLoadQuery.js.flow +14 -16
- package/relay-hooks/useLazyLoadQueryNode.js.flow +20 -14
- package/relay-hooks/useLoadMoreFunction.js.flow +21 -30
- package/relay-hooks/useMemoOperationDescriptor.js.flow +6 -8
- package/relay-hooks/useMemoVariables.js.flow +7 -7
- package/relay-hooks/useMutation.js.flow +27 -27
- package/relay-hooks/usePaginationFragment.js.flow +39 -45
- package/relay-hooks/usePreloadedQuery.js.flow +14 -20
- package/relay-hooks/useQueryLoader.js.flow +42 -23
- package/relay-hooks/useRefetchableFragment.js.flow +8 -9
- package/relay-hooks/useRefetchableFragmentNode.js.flow +25 -33
- package/relay-hooks/useRelayEnvironment.js.flow +3 -5
- package/relay-hooks/useStaticFragmentNodeWarning.js.flow +3 -4
- package/relay-hooks/useSubscribeToInvalidationState.js.flow +4 -7
- package/relay-hooks/useSubscription.js.flow +21 -11
- 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__/ReactRelayPaginationContainerFlowtestQuery.graphql.js.flow
ADDED
@@ -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<<5522fec854de09ce0ae6f0046e721cd8>>
|
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 ReactRelayPaginationContainerFlowtest_viewer$fragmentType = any;
|
20
|
+
export type ReactRelayPaginationContainerFlowtestQuery$variables = {|
|
21
|
+
count: number,
|
22
|
+
cursor?: ?string,
|
23
|
+
|};
|
24
|
+
export type ReactRelayPaginationContainerFlowtestQueryVariables = ReactRelayPaginationContainerFlowtestQuery$variables;
|
25
|
+
export type ReactRelayPaginationContainerFlowtestQuery$data = {|
|
26
|
+
+viewer: ?{|
|
27
|
+
+$fragmentSpreads: ReactRelayPaginationContainerFlowtest_viewer$fragmentType,
|
28
|
+
|},
|
29
|
+
|};
|
30
|
+
export type ReactRelayPaginationContainerFlowtestQueryResponse = ReactRelayPaginationContainerFlowtestQuery$data;
|
31
|
+
export type ReactRelayPaginationContainerFlowtestQuery = {|
|
32
|
+
variables: ReactRelayPaginationContainerFlowtestQueryVariables,
|
33
|
+
response: ReactRelayPaginationContainerFlowtestQuery$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": "ReactRelayPaginationContainerFlowtestQuery",
|
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": "ReactRelayPaginationContainerFlowtest_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": "ReactRelayPaginationContainerFlowtestQuery",
|
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": "ReactRelayPaginationContainerFlowtest_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": "92bf8d4e1f48e0016fbd6499173b3f39",
|
211
|
+
"id": null,
|
212
|
+
"metadata": {},
|
213
|
+
"name": "ReactRelayPaginationContainerFlowtestQuery",
|
214
|
+
"operationKind": "query",
|
215
|
+
"text": "query ReactRelayPaginationContainerFlowtestQuery(\n $count: Int!\n $cursor: ID\n) {\n viewer {\n ...ReactRelayPaginationContainerFlowtest_viewer\n }\n}\n\nfragment ReactRelayPaginationContainerFlowtest_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 = "712afeafa1f51bfe391719629a0fcea0";
|
222
|
+
}
|
223
|
+
|
224
|
+
module.exports = ((node/*: any*/)/*: Query<
|
225
|
+
ReactRelayPaginationContainerFlowtestQuery$variables,
|
226
|
+
ReactRelayPaginationContainerFlowtestQuery$data,
|
227
|
+
>*/);
|
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
|
+
>*/);
|