Skip to content
Open
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export const addMetadata = ({
} = {}) => {
const {
types = [],
} = (response?.data?.__schema || response?.__schema || {})
} = (response?.data?.__schema || response?.__schema || response?.body?.singleResult?.data?.__schema || {})

// Go through all the types in the Introspection Query response and augment them
types.forEach((type) => augmentType({ type, schemaMetadata }))
Expand Down