UNPKG

1.15 kBJavaScriptView Raw
1// @generated
2/**
3 * Copyright (c) 2013-present, Facebook, Inc.
4 * All rights reserved.
5 *
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the root directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
9 *
10 *
11 * @fullSyntaxTransform
12 */
13
14'use strict';
15
16var types = require('./GraphQL').type;
17
18module.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