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.
Browser console:
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.