Files
lcbp3.np-dms.work/frontend/node_modules/graphql/jsutils/printPathArray.js
2025-09-21 20:29:15 +07:00

18 lines
329 B
JavaScript

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