Swap-Aggregator-Subgraph/node_modules/graphql/jsutils/printPathArray.js
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

16 lines
323 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = printPathArray;
/**
* Build a string describing the path.
*/
function printPathArray(path) {
return path.map(function (key) {
return typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key;
}).join('');
}