Skip to content

Commit 62fcc43

Browse files
committed
fix: remove references array from GraphQL union references generation (#8436)
1 parent ec4abea commit 62fcc43

File tree

3 files changed

+0
-6733
lines changed

3 files changed

+0
-6733
lines changed

packages/sanity/src/_internal/cli/actions/graphql/extractFromSanitySchema.ts

-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ export function extractFromSanitySchema(
408408

409409
return {
410410
type: name,
411-
...(targetTypes ? {references: targetTypes} : {}),
412411
...base,
413412
}
414413
}

packages/sanity/test/cli/graphql/__snapshots__/extract.test.ts.snap

-4
Original file line numberDiff line numberDiff line change
@@ -2555,10 +2555,6 @@ exports[`GraphQL - Schema extraction > Should be able to extract schema with uni
25552555
"children": {
25562556
"description": undefined,
25572557
"isReference": true,
2558-
"references": [
2559-
"A",
2560-
"Union",
2561-
],
25622558
"type": "AOrUnion",
25632559
},
25642560
"description": undefined,

0 commit comments

Comments
 (0)