graphql
Version:
A Query Language and Runtime which can target any service.
12 lines • 366 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.printPathArray = printPathArray;
function printPathArray(path) {
if (path.length === 0) {
return '';
}
return ` at ${path
.map((key) => (typeof key === 'number' ? `[${key}]` : `.${key}`))
.join('')}`;
}
//# sourceMappingURL=printPathArray.js.map