UNPKG

@aws-amplify/graphql-api-construct

Version:

AppSync GraphQL Api Construct using Amplify GraphQL Transformer.

14 lines (13 loc) 283 B
// @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(''); }