Files
30-seconds-of-code/node_modules/relay-runtime/lib/RelayConcreteNode.js
2019-08-20 15:52:05 +02:00

43 lines
1.2 KiB
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* strict-local
* @format
*/
'use strict';
/**
* Represents a common GraphQL request with `text` (or persisted `id`) can be
* used to execute it, an `operation` containing information to normalize the
* results, and a `fragment` derived from that operation to read the response
* data (masking data from child fragments).
*/
/**
* Contains the `text` (or persisted `id`) required for executing a common
* GraphQL request.
*/
var RelayConcreteNode = {
CONDITION: 'Condition',
DEFER: 'Defer',
FRAGMENT: 'Fragment',
FRAGMENT_SPREAD: 'FragmentSpread',
INLINE_FRAGMENT: 'InlineFragment',
LINKED_FIELD: 'LinkedField',
LINKED_HANDLE: 'LinkedHandle',
LITERAL: 'Literal',
LOCAL_ARGUMENT: 'LocalArgument',
MATCH_FIELD: 'MatchField',
OPERATION: 'Operation',
REQUEST: 'Request',
ROOT_ARGUMENT: 'RootArgument',
SCALAR_FIELD: 'ScalarField',
SCALAR_HANDLE: 'ScalarHandle',
SPLIT_OPERATION: 'SplitOperation',
STREAM: 'Stream',
VARIABLE: 'Variable'
};
module.exports = RelayConcreteNode;