relay-compiler 0.0.0-main-9ec4e780 → 0.0.0-main-23b4cacf
Sign up to get free protection for your applications and to get access to all the features.
- package/linux-x64/relay +0 -0
- package/macos-arm64/relay +0 -0
- package/macos-x64/relay +0 -0
- package/package.json +1 -1
- package/relay-extensions.graphql +251 -0
- package/win-x64/relay.exe +0 -0
package/linux-x64/relay
CHANGED
Binary file
|
package/macos-arm64/relay
CHANGED
Binary file
|
package/macos-x64/relay
CHANGED
Binary file
|
package/package.json
CHANGED
@@ -0,0 +1,251 @@
|
|
1
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2
|
+
#
|
3
|
+
# This source code is licensed under the MIT license found in the
|
4
|
+
# LICENSE file in the root directory of this source tree.
|
5
|
+
|
6
|
+
directive @relay_test_operation on QUERY | MUTATION | SUBSCRIPTION
|
7
|
+
|
8
|
+
"""
|
9
|
+
(Relay only)
|
10
|
+
|
11
|
+
The hooks APIs that Relay exposes allow you to read data from the store only
|
12
|
+
during the render phase. In order to read data from outside of the render
|
13
|
+
phase (or from outside of React), Relay exposes the `@inline` directive. The
|
14
|
+
data from a fragment annotated with `@inline` can be read using `readInlineData`.
|
15
|
+
|
16
|
+
[Read More](https://relay.dev/docs/api-reference/graphql-and-directives/#inline)
|
17
|
+
"""
|
18
|
+
directive @inline on FRAGMENT_DEFINITION
|
19
|
+
|
20
|
+
directive @no_inline(raw_response_type: Boolean) on FRAGMENT_DEFINITION
|
21
|
+
|
22
|
+
"""
|
23
|
+
(Relay only)
|
24
|
+
|
25
|
+
A directive added to queries which tells Relay to generate types that cover
|
26
|
+
the `optimisticResponse` parameter to `commitMutation`.
|
27
|
+
|
28
|
+
[Read More](https://relay.dev/docs/glossary/#raw_response_type)
|
29
|
+
"""
|
30
|
+
directive @raw_response_type on QUERY | MUTATION | SUBSCRIPTION
|
31
|
+
|
32
|
+
directive @DEPRECATED__relay_ignore_unused_variables_error on QUERY | MUTATION | SUBSCRIPTION
|
33
|
+
|
34
|
+
"""
|
35
|
+
(Relay Only)
|
36
|
+
|
37
|
+
For use with [`useRefetchableFragment`](https://relay.dev/docs/api-reference/use-refetchable-fragment/).
|
38
|
+
|
39
|
+
The @refetchable directive can only be added to fragments that are
|
40
|
+
"refetchable", that is, on fragments that are declared on Viewer or Query
|
41
|
+
types, or on a type that implements `Node` (i.e. a type that has an id).
|
42
|
+
|
43
|
+
[Read More](https://relay.dev/docs/api-reference/use-refetchable-fragment/#arguments)
|
44
|
+
"""
|
45
|
+
directive @refetchable(
|
46
|
+
queryName: String!
|
47
|
+
directives: [String!]
|
48
|
+
) on FRAGMENT_DEFINITION
|
49
|
+
|
50
|
+
"""
|
51
|
+
(Relay Only)
|
52
|
+
|
53
|
+
A directive that modifies queries and which causes Relay to generate
|
54
|
+
`$Parameters.js` files and preloadable concrete requests. Required if the
|
55
|
+
query is going to be used as part of an entry point.
|
56
|
+
|
57
|
+
The `hackPreloader` argument is FB only and generates a Hack preloader file.
|
58
|
+
|
59
|
+
[Read More](https://relay.dev/docs/glossary/#preloadable)
|
60
|
+
"""
|
61
|
+
directive @preloadable(hackPreloader: Boolean = false) on QUERY
|
62
|
+
|
63
|
+
"""
|
64
|
+
(Relay Only)
|
65
|
+
|
66
|
+
A directive that allows you to turn off Relay's data masking.
|
67
|
+
|
68
|
+
Read more
|
69
|
+
[here](https://relay.dev/docs/api-reference/graphql-and-directives/#relayplural-boolean)
|
70
|
+
and
|
71
|
+
[here](https://relay.dev/docs/api-reference/graphql-and-directives/#relaymask-boolean).
|
72
|
+
"""
|
73
|
+
directive @relay(
|
74
|
+
mask: Boolean
|
75
|
+
plural: Boolean
|
76
|
+
) on FRAGMENT_DEFINITION | FRAGMENT_SPREAD
|
77
|
+
|
78
|
+
# Handles
|
79
|
+
# prettier-ignore
|
80
|
+
directive @__clientField(
|
81
|
+
filters: [String!]
|
82
|
+
handle: String!
|
83
|
+
key: String
|
84
|
+
) repeatable on FIELD
|
85
|
+
|
86
|
+
# MatchTransform
|
87
|
+
"""
|
88
|
+
(Relay Only)
|
89
|
+
|
90
|
+
A directive that, when used in combination with `@module`, allows users to
|
91
|
+
download specific JS components alongside the rest of the GraphQL payload if
|
92
|
+
the field decorated with [`@match`](https://relay.dev/docs/glossary/#match)
|
93
|
+
has a certain type. See [3D](https://relay.dev/docs/glossary/#3d).
|
94
|
+
|
95
|
+
[Read More](https://relay.dev/docs/glossary/#match)
|
96
|
+
"""
|
97
|
+
directive @match(key: String) on FIELD
|
98
|
+
|
99
|
+
"""
|
100
|
+
(Relay Only)
|
101
|
+
|
102
|
+
A directive that, when used in combination with
|
103
|
+
[`@match`](https://relay.dev/docs/glossary/#match), allows users to specify
|
104
|
+
which JS components to download if the field decorated with @match has a
|
105
|
+
certain type. See [3D](https://relay.dev/docs/glossary/#3d).
|
106
|
+
|
107
|
+
[Read More](https://relay.dev/docs/glossary/#module)
|
108
|
+
"""
|
109
|
+
directive @module(name: String!) on FRAGMENT_SPREAD
|
110
|
+
|
111
|
+
# ConnectionTransform
|
112
|
+
"""
|
113
|
+
(Relay Only)
|
114
|
+
|
115
|
+
A directive which declares that a field implements the connection spec.
|
116
|
+
|
117
|
+
[Read More](https://relay.dev/docs/guided-tour/list-data/pagination/)
|
118
|
+
"""
|
119
|
+
directive @connection(
|
120
|
+
key: String!
|
121
|
+
filters: [String]
|
122
|
+
handler: String
|
123
|
+
dynamicKey_UNSTABLE: String
|
124
|
+
) on FIELD
|
125
|
+
|
126
|
+
directive @stream_connection(
|
127
|
+
key: String!
|
128
|
+
filters: [String]
|
129
|
+
handler: String
|
130
|
+
label: String
|
131
|
+
initial_count: Int!
|
132
|
+
if: Boolean = true
|
133
|
+
use_customized_batch: Boolean = false
|
134
|
+
dynamicKey_UNSTABLE: String
|
135
|
+
) on FIELD
|
136
|
+
|
137
|
+
# RequiredTransform
|
138
|
+
enum RequiredFieldAction {
|
139
|
+
NONE
|
140
|
+
LOG
|
141
|
+
THROW
|
142
|
+
}
|
143
|
+
|
144
|
+
"""
|
145
|
+
(Relay Only)
|
146
|
+
|
147
|
+
`@required` is a directive you can add to fields in your Relay queries to
|
148
|
+
declare how null values should be handled at runtime. You can think of it as
|
149
|
+
saying "if this field is ever null, its parent field is invalid and should be
|
150
|
+
null".
|
151
|
+
|
152
|
+
[Read More](https://www.internalfb.com/intern/staticdocs/relay/docs/guides/required-directive/) (FB only)
|
153
|
+
"""
|
154
|
+
directive @required(action: RequiredFieldAction!) on FIELD
|
155
|
+
|
156
|
+
# DeclarativeConnection
|
157
|
+
"""
|
158
|
+
(Relay Only)
|
159
|
+
|
160
|
+
For use within mutations. After the mutation request is complete, this field
|
161
|
+
will be removed from the store.
|
162
|
+
|
163
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
164
|
+
"""
|
165
|
+
directive @deleteRecord on FIELD
|
166
|
+
|
167
|
+
"""
|
168
|
+
(Relay Only)
|
169
|
+
|
170
|
+
For use within mutations. After the mutation request is complete, this edge
|
171
|
+
will be removed from its parent connection.
|
172
|
+
|
173
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
174
|
+
"""
|
175
|
+
directive @deleteEdge(connections: [ID!]!) on FIELD
|
176
|
+
|
177
|
+
"""
|
178
|
+
(Relay Only)
|
179
|
+
|
180
|
+
For use within mutations. After the mutation request is complete, this edge
|
181
|
+
will be appended to its parent connection.
|
182
|
+
|
183
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
184
|
+
"""
|
185
|
+
directive @appendEdge(connections: [ID!]!) on FIELD
|
186
|
+
|
187
|
+
"""
|
188
|
+
(Relay Only)
|
189
|
+
|
190
|
+
For use within mutations. After the mutation request is complete, this edge
|
191
|
+
will be prepended to its parent connection.
|
192
|
+
|
193
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
194
|
+
"""
|
195
|
+
directive @prependEdge(connections: [ID!]!) on FIELD
|
196
|
+
|
197
|
+
"""
|
198
|
+
(Relay Only)
|
199
|
+
|
200
|
+
For use within mutations. After the mutation request is complete, this node
|
201
|
+
will be appended to its parent connection.
|
202
|
+
|
203
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
204
|
+
"""
|
205
|
+
directive @appendNode(connections: [ID!]!, edgeTypeName: String!) on FIELD
|
206
|
+
|
207
|
+
"""
|
208
|
+
(Relay Only)
|
209
|
+
|
210
|
+
For use within mutations. After the mutation request is complete, this node
|
211
|
+
will be prepended to its parent connection.
|
212
|
+
|
213
|
+
[Read More](https://relay.dev/docs/guided-tour/updating-data/graphql-mutations/#updating-data-once-a-request-is-complete)
|
214
|
+
"""
|
215
|
+
directive @prependNode(connections: [ID!]!, edgeTypeName: String!) on FIELD
|
216
|
+
|
217
|
+
# RelayClientComponentTransform
|
218
|
+
directive @relay_client_component on FRAGMENT_SPREAD
|
219
|
+
|
220
|
+
# RelayResolver
|
221
|
+
directive @relay_resolver(
|
222
|
+
fragment_name: String!
|
223
|
+
import_path: String!
|
224
|
+
live: Boolean
|
225
|
+
) on FIELD_DEFINITION
|
226
|
+
|
227
|
+
"""
|
228
|
+
(Relay Only)
|
229
|
+
|
230
|
+
Reading this Client Edge field triggers a network roundtrip or "waterfall". The
|
231
|
+
consuming component will suspend until that request has been fulfilled.
|
232
|
+
"""
|
233
|
+
directive @waterfall on FIELD
|
234
|
+
|
235
|
+
"""
|
236
|
+
(Relay Only)
|
237
|
+
|
238
|
+
Marks a given query or fragment as updatable.
|
239
|
+
|
240
|
+
[Read More](https://fb.quip.com/4FZaADvkQPPl)
|
241
|
+
"""
|
242
|
+
directive @updatable on QUERY | FRAGMENT_DEFINITION
|
243
|
+
|
244
|
+
"""
|
245
|
+
(Relay Only)
|
246
|
+
|
247
|
+
Marks a given fragment as assignable.
|
248
|
+
|
249
|
+
[Read More](https://fb.quip.com/4FZaADvkQPPl)
|
250
|
+
"""
|
251
|
+
directive @assignable on FRAGMENT_DEFINITION
|
package/win-x64/relay.exe
CHANGED
Binary file
|