graphql-query-path Have a look at the readme at: npmjs.com/package/graphql-query-path github.com/alber70g/graphql-query-path