Skip to content

Commit

Permalink
refactor: add references array
Browse files Browse the repository at this point in the history
  • Loading branch information
cngonzalez committed Jan 23, 2025
1 parent 40af6cf commit 0ec698d
Show file tree
Hide file tree
Showing 3 changed files with 6,733 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ export function extractFromSanitySchema(

return {
type: name,
// references: targetTypes,
...(targetTypes ? {references: targetTypes} : {}),
...base,
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2555,6 +2555,10 @@ exports[`GraphQL - Schema extraction > Should be able to extract schema with uni
"children": {
"description": undefined,
"isReference": true,
"references": [
"A",
"Union",
],
"type": "AOrUnion",
},
"description": undefined,
Expand Down
Loading

0 comments on commit 0ec698d

Please sign in to comment.