UNPKG

graphql

Version:

A Query Language and Runtime which can target any service.

13 lines 319 B
export function addPath(prev, key, typename) { return { prev, key, typename }; } export function pathToArray(path) { const flattened = []; let curr = path; while (curr) { flattened.push(curr.key); curr = curr.prev; } return flattened.reverse(); } //# sourceMappingURL=Path.js.map