1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | 'use strict';
|
15 |
|
16 | var types = require('./GraphQL').type;
|
17 |
|
18 | module.exports = {
|
19 | name: 'relay',
|
20 | description: 'The @relay directive.',
|
21 | args: [{
|
22 | name: 'isConnectionWithoutNodeID',
|
23 | description: 'Marks a connection field as containing nodes without `id` fields. ' + 'This is used to silence the warning when diffing connections.',
|
24 | type: types.GraphQLBoolean,
|
25 | defaultValue: null
|
26 | }, {
|
27 | name: 'pattern',
|
28 | description: 'Marks a fragment as intended for pattern matching (as opposed to ' + 'fetching).',
|
29 | type: types.GraphQLBoolean,
|
30 | defaultValue: null
|
31 | }, {
|
32 | name: 'plural',
|
33 | description: 'Marks a fragment as being backed by a GraphQLList',
|
34 | type: types.GraphQLBoolean,
|
35 | defaultValue: null
|
36 | }],
|
37 | onOperation: false,
|
38 | onFragment: true,
|
39 | onField: true
|
40 | }; |
\ | No newline at end of file |