Skip to main content
Solved

'Published by' details via GraphQL


Albert de Ruiter
Star Blazer L3
Forum|alt.badge.img+4

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

Best answer by SamWrigley

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
            }
          }
 

 

View original
Did this topic help you find an answer to your question?

2 replies

Forum|alt.badge.img+2
  • Space Explorer
  • 6 replies
  • Answer
  • April 10, 2025

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
            }
          }
 

 


Albert de Ruiter
Star Blazer L3
Forum|alt.badge.img+4

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings