This commit is contained in:
13
node_modules/graphql/jsutils/printPathArray.js.flow
generated
vendored
Normal file
13
node_modules/graphql/jsutils/printPathArray.js.flow
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
// @flow strict
|
||||
/**
|
||||
* Build a string describing the path.
|
||||
*/
|
||||
export default function printPathArray(
|
||||
path: $ReadOnlyArray<string | number>,
|
||||
): string {
|
||||
return path
|
||||
.map((key) =>
|
||||
typeof key === 'number' ? '[' + key.toString() + ']' : '.' + key,
|
||||
)
|
||||
.join('');
|
||||
}
|
||||
Reference in New Issue
Block a user