Skip to main content

Hi all,

In a JSON call-step in a Desktop component I use a query like this in order to retrieve the Version and Published on details.

 {"query":"query getDetails {
    product(gid: \"#IDAta#\") {
        gid
        draftVersion {
           name
            _effectiveFrom {
                id
                timestamp
            }
        }
    }
}"}

Does anyone know how to expand the query so that also Published by is retrieved?

Kind regards,

Albert

Hi ​@Albert de Ruiter

To see published by in that step you can add the following to the _effectiveFrom selection set and omit any details you don’t want. 


          author {
            id
            ... on Person {
              username
              firstName
              lastName
              email
              userId
              __typename
            }
          }
 

 


Hi ​@SamWrigley,

That's great, I have theperson details included in my query now :-)

The ‘id’ was not interpreted well though, so I omitted that part. My query no looks like:

query getDetails {
    product(gid: "5877cd9a-0000-7000-0000-000000a20de8") {
        gid
        draftVersion {
           name
            _effectiveFrom {
                id
                timestamp
                author {
              ... on Person {
                username
                firstName
                lastName
                email
                userId
                __typename
               }
              }
            }
        }
    }
}

Kind regards,

Albert


Reply