UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

18 lines (15 loc) 329 B
'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(''); }