@aws-amplify/data-construct
Version:
AppSync GraphQL Api Construct using Amplify GraphQL Transformer - Aliased to use `Data` name scheme.
16 lines (13 loc) • 323 B
JavaScript
;
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('');
}