graphql

Search for an npm package
/**
* Build a string describing the path.
*/
export function printPathArray(path) {
return path
.map((key) =>
typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key,
)
.join('');
}