Query execution error. Link to entry 'xxxxx' on field 'xxxx' within type 'xxxxx' cannot be resolved #28198
-
Hi everyone! I am using the The error I get: {
"errors": [
{
"message": "Query execution error. Link to entry 'xxxxxxxxxxxxxxxxxx' on field 'xxxxx' within type 'xxxxxx' cannot be resolved",
"locations": [
{
"line": 7,
"column": 11
}
],
"path": [
"contentful",
"articleCollection",
"items",
0,
"creditsCollection",
"items",
0
],
"extensions": {
"contentful": {
"code": "UNRESOLVABLE_LINK",
"requestId": "xxxxxxxxxxxxxxxxx",
"details": {
"type": "xxxxxx",
"field": "xxxxxx",
"linkType": "Entry",
"linkId": "xxxxxxxxxxxxxxxxxx"
}
}
},
"stack": [
"GraphQLError: Query execution error. Link to entry 'xxxxxxxxxxxxxxxxxx' on field 'xxxxxxxx' within type 'xxxxxxxx' cannot be resolved",
" at Object.relocatedError (/...xxxx/dist/utils/src/errors.js:4:12)",
" at handleNull (/...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleNull.js:11:43)",
" at handleListMember (/...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleList.js:11:16)",
" at /...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleList.js:7:44",
" at Array.map (<anonymous>)",
" at handleList (/...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleList.js:7:17)",
" at handleResult (/...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/results/handleResult.js:17:16)",
" at resolver (/...xxxx/node_modules/gatsby-source-graphql/dist/delegate/src/defaultMergedResolver.js:24:12)",
" at resolver (/...xxxx/node_modules/gatsby/src/schema/resolvers.ts:518:14)",
" at wrappedTracingResolver (/...xxxx/node_modules/gatsby/src/schema/resolvers.ts:518:14)",
" at resolveFieldValueOrError (/...xxxx/node_modules/graphql/execution/execute.js:467:18)",
" at resolveField (/...xxxx/node_modules/graphql/execution/execute.js:434:16)",
" at executeFields (/...xxxx/node_modules/graphql/execution/execute.js:275:18)",
" at collectAndExecuteSubfields (/...xxxx/node_modules/graphql/execution/execute.js:713:10)",
" at completeObjectValue (/...xxxx/node_modules/graphql/execution/execute.js:703:10)",
" at completeValue (/...xxxx/node_modules/graphql/execution/execute.js:591:12)"
]
},
]
} In Next.js there's Apollo and can configure your This error being output is causing a production build failure. It functions fine in develop. Any ideas on how to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey 👋
Also, it is not entirely clear how exactly gatsby build fails for you and what behavior you expect in this case? |
Beta Was this translation helpful? Give feedback.
-
Bump |
Beta Was this translation helpful? Give feedback.
Hey 👋
gatsby-source-graphql
allows you to set a customfetch
implementation or if you prefer apollo - a custom apollo link viacreateLink
option. You can handle this error there if you need to. See docs: https://www.gatsbyjs.com/plugins/gatsby-source-graphql/?=gatsby-source-graphql#how-to-useAlso, it is not entirely clear how exactly gatsby build fails for you and what behavior you expect in this case?