Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0f65692
chore(release): update monorepo packages versions (#6826)
theguild-bot Jan 6, 2025
33e8b5d
Bump webpack from 5.99.1 to 5.99.2 in the actions-deps group (#7101)
dependabot[bot] Apr 8, 2025
bf72aff
chore(deps): update dependency svelte to v5.25.9 (#7108)
renovate[bot] Apr 8, 2025
dba7f2a
build(deps): bump next from 15.4.2 to 15.4.3 (#7317)
dependabot[bot] Jul 24, 2025
c7d8570
feat(executor): add schema coordinates extension to graphql errors
EmrysMyrddin Oct 14, 2025
0f67a7b
make error coordinate schema extension opt-in and non-serializable
EmrysMyrddin Oct 16, 2025
91a9a5e
fix import
EmrysMyrddin Oct 27, 2025
cafb417
remove `null` for nodes
EmrysMyrddin Oct 27, 2025
7922d3f
fix
EmrysMyrddin Oct 27, 2025
ce2817a
add changeset
EmrysMyrddin Oct 27, 2025
6bc6c4f
try fix CI snapshot message
EmrysMyrddin Oct 27, 2025
e38dabd
export getter
EmrysMyrddin Oct 27, 2025
fb45070
fix example
EmrysMyrddin Oct 27, 2025
0fe02b7
update tests
EmrysMyrddin Oct 28, 2025
bfe3e42
remove version guards in tests
EmrysMyrddin Oct 28, 2025
37d8ddf
fix tests for Bun
EmrysMyrddin Oct 31, 2025
751f280
use `coordinate` instead of extensions
EmrysMyrddin Nov 10, 2025
7c9f1fc
chore(dependencies): updated changesets for modified dependencies
github-actions[bot] Nov 10, 2025
5663c9b
do not care about graphql 15
EmrysMyrddin Nov 10, 2025
748556a
update changeset
EmrysMyrddin Nov 10, 2025
0fbfc4d
do not use class
EmrysMyrddin Nov 13, 2025
b9286d7
add executor tests for error coordinates
EmrysMyrddin Nov 13, 2025
cd259c9
chore(dependencies): updated changesets for modified dependencies
github-actions[bot] Nov 13, 2025
1d4c7bf
fix JSON stringify
EmrysMyrddin Nov 13, 2025
50334a2
do not override existing coordinate
EmrysMyrddin Nov 14, 2025
9882723
use define property and guard against existing coordinate
EmrysMyrddin Nov 14, 2025
eae3c31
also override toJSON in locatedError
EmrysMyrddin Nov 14, 2025
1629d64
chore(dependencies): updated changesets for modified dependencies
github-actions[bot] Nov 14, 2025
d10ee4a
update changeset
EmrysMyrddin Nov 14, 2025
2b67fa6
fix test
EmrysMyrddin Nov 14, 2025
6fcd4c6
never serialize coordinate
EmrysMyrddin Nov 20, 2025
ee00f11
@ardatan review
EmrysMyrddin Nov 28, 2025
2ebdfe1
chore(dependencies): updated changesets for modified dependencies
github-actions[bot] Nov 28, 2025
c97b0e7
fix changeset
EmrysMyrddin Nov 28, 2025
88a777b
fix changeset
EmrysMyrddin Nov 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/graphql-file-loader": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-tools/import/v/7.1.7) (from `7.1.6`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_import-7588-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/import": patch
---
dependencies updates:
- Updated dependency [`@theguild/federation-composition@^0.21.0` ↗︎](https://www.npmjs.com/package/@theguild/federation-composition/v/0.21.0) (from `^0.20.2`, in `dependencies`)
5 changes: 5 additions & 0 deletions .changeset/@graphql-tools_node-require-7588-dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-tools/node-require": patch
---
dependencies updates:
- Updated dependency [`@graphql-tools/[email protected]` ↗︎](https://www.npmjs.com/package/@graphql-tools/graphql-file-loader/v/8.1.7) (from `8.1.6`, in `dependencies`)
34 changes: 34 additions & 0 deletions .changeset/floppy-women-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
'@graphql-tools/executor': minor
'@graphql-tools/utils': minor
---

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 `schemaCoordinateInErrors` executor 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.

```ts
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)
}
}
```
1 change: 1 addition & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
permissions:
contents: read
id-token: write
pull-requests: write
uses: the-guild-org/shared-config/.github/workflows/release-snapshot.yml@v1
if: ${{ github.event.pull_request.title != 'Upcoming Release Changes' }}
with:
Expand Down
Loading
Loading