1 Answer 1

3

You need to read the field __updated which will hold the value of the updated date of the item. Below is how your GraphQL will look like:

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

The result:

enter image description here

Note that if you want to add the name of the user who modified the item, you should use the name __updated by. Below is a snippet when using the __updated by

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

Outcome:

enter image description here

1
  • Thanks Hishaam Namooya
    – sns
    Nov 30, 2021 at 11:01

Your Answer

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

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