react-relay
Version:
A framework for building data-driven React applications.
40 lines (33 loc) • 1 kB
JavaScript
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule RelayRefQueryDescriptor
*
* @typechecks
*/
;
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
Object.defineProperty(exports, '__esModule', {
value: true
});
/**
* @internal
*
* Represents a node that will eventually become a "ref query".
*
* Includes the "path" context (ancestor nodes) that can be used to construct an
* appropriate the JSONPath for the query.
*
* @see splitDeferredRelayQueries
*/
var RelayRefQueryDescriptor = function RelayRefQueryDescriptor(node, path) {
_classCallCheck(this, RelayRefQueryDescriptor);
this.node = node;
this.path = path;
};
module.exports = RelayRefQueryDescriptor;