Skip to main content
The grammatical errors have been corrected, and certain words have been highlighted for improved readability.
Source Link

rendering return Rendering returns null with hardcoded path but works fine on the playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I am trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering). I keep getting null value, but it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

FYI - I tried a different graphQLGraphQL query on this rendering with $contextitem$contextitem and $datasource$datasource and it’s working. It’s not working when I directly pass the GUID/Path.

rendering return null with hardcoded path but works fine on the playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I am trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering). I keep getting null value, but it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

FYI - I tried a different graphQL query on this rendering with $contextitem and $datasource and it’s working. It’s not working when I directly pass the GUID/Path.

Rendering returns null with hardcoded path but works fine on the playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I am trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering). I keep getting null value, but it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

FYI - I tried a different GraphQL query on this rendering with $contextitem and $datasource and it’s working. It’s not working when I directly pass the GUID/Path.

added 234 characters in body
Source Link
Sun
  • 119
  • 11

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I addedam trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering), but. I keep getting null value. But, but it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

FYI - I tried a different graphQL query on this rendering with $contextitem and $datasource and it’s working. It’s not working when I directly pass the GUID/Path.

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I added the below GraphQL query to the Sitecore rendering (Json Rendering), but I keep getting null value. But it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I am trying to retrieve the version of a pdf file from media lib using below GraphQL query and added to the Sitecore rendering (Json Rendering). I keep getting null value, but it's working on the playground.

enter image description here

Browser console:

enter image description here

Playground: graphql playground

FYI - I tried a different graphQL query on this rendering with $contextitem and $datasource and it’s working. It’s not working when I directly pass the GUID/Path.

added 10 characters in body
Source Link
Sumit Helaiya
  • 3.2k
  • 2
  • 12
  • 23

Env: Sitecore 10.3 SXA Headless and using NextJS(react)Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I added the below GraphQLGraphQL query to the Sitecore rendering (Json Rendering), but I keep getting null value. But it's working on the playground.

enter image description here

Browser console:   

enter image description here

Playground: graphql playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I added the below GraphQL query to the Sitecore rendering (Json Rendering), but keep getting null value. But it's working on the playground.

enter image description here

Browser console:  enter image description here

Playground: graphql playground

Env: Sitecore 10.3 SXA Headless and using NextJS(react)

I added the below GraphQL query to the Sitecore rendering (Json Rendering), but I keep getting null value. But it's working on the playground.

enter image description here

Browser console: 

enter image description here

Playground: graphql playground

Source Link
Sun
  • 119
  • 11
Loading