Skip to main content
Query

profilePublishState

Returns whether the profile's draft has unpublished changes and what happened to its latest publish. Requires being signed in and able to edit the profile (an owner or admin member, or a member of a space that manages it).

Arguments

  • profileIdID!

    ID of the profile.

  • seenString

    The editor's draft state from its live editing session. When given, the read waits until the draft includes those edits. Omit outside the editor.

Returns

PublishState!

Example

query ProfilePublishState($profileId: ID!, $seen: String) {
  profilePublishState(profileId: $profileId, seen: $seen) {
    canPublish
    liveHash
    published
    reason
    submission
    submittedAt
    unpublishedChanges
  }
}