1

I am trying to fetch updated date of an item via graphql query using jss Sitecore app. I have done a bit of research and found out that I need to extend graphql schema in order to get updated date.

Can some one please guide me a way to get updated date

I found this query while searching

{
  item(path: "/sitecore/Content/Home", language: "en") {
    name
    versions {
      path
      field(name: "__updated"){
        value
      }
    }
  }
}

But the issue is, I am not getting versions. I am getting error message

"message": "Cannot query field \"versions\" on type \"Item\". Did you mean \"version\"?",
3
  • I tried it and it's working well for me for Sitecore 9.3 version. Can you please confirm what version you are using? Commented Jul 29, 2022 at 7:20
  • @SumitBhatia i am using 10.2
    – Adnan Raza
    Commented Aug 12, 2022 at 6:16
  • It is not supported.
    – jrap
    Commented Jan 12, 2023 at 22:14

1 Answer 1

0

{
  item(path: "/sitecore/content/Home/MyProject/Home/About", language: "en") {
    name
    versions {
      path
      field(name: "__updated"){
        value
      }
    }
  }
}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.