diff options
Diffstat (limited to 'alarm/node_modules/graphql/jsutils/printPathArray.mjs')
-rw-r--r-- | alarm/node_modules/graphql/jsutils/printPathArray.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/alarm/node_modules/graphql/jsutils/printPathArray.mjs b/alarm/node_modules/graphql/jsutils/printPathArray.mjs new file mode 100644 index 0000000..6bf077a --- /dev/null +++ b/alarm/node_modules/graphql/jsutils/printPathArray.mjs @@ -0,0 +1,8 @@ +/** + * Build a string describing the path. + */ +export default function printPathArray(path) { + return path.map(function (key) { + return typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key; + }).join(''); +} |