@graphql-tools/utils
13.2.2 · 10 Nov 2026MIT57M / weekRepositoryHomepagenpmAtom feed
In short
1 new
Security
2 advisories affect 10.11.0; 12.0.2 fixes them
- HighGraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segmentsGHSA-c4qx-w738-7hr3 · 22 Oct 2026Fixed in 12.0.2
- HighGraphQL Tools has prototype pollution in well-established utility function `mergeDeep`GHSA-7mx3-vvmw-hjmv · 5 Oct 2026Fixed in 12.0.1
Release note
The section about @graphql-tools/utils of a note shared by several packages.
@graphql-tools/utils@10.11.0
Minor Changes
#7588
2118a80
Thanks @EmrysMyrddin! - Add optional schema coordinate in error
extensions. This extension allows to precisely identify the source of the error by automated tools
like tracing or monitoring.This new feature is opt-in, you have to enable it using
schemaCoordinateInErrorsexecutor
option.Caution: This feature, when enabled, will expose information about your schema. If you need to
keep your schema private and secret, you should strip this attribute at serialization time before
sending errors to the client.import { parse } from 'graphql' import { normalizedExecutor } from '@graphql-tools/executor' import { getSchemaCoordinate } from '@graphql-tools/utils' import schema from './schema' const result = await normalizedExecutor({ schema, document: parse(`...`), schemaCoordinateInErrors: true // enable adding schema coordinate to graphql errors }) if (result.errors) { for (const error of result.errors) { console.log('Error in resolver ', error.coordinate, ':', error.message) // or with `getSchemaCoordinate` util, to workaround types if needed console.log('Error in resolver', getSchemaCoordinate(error), ':', error.message) } }
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.