Skip to main content
Query

profilePreview

Returns the profile's draft as the public would see it once published, whatever its visibility. 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

  • localeString

    Language to serve the text in, as a language code. Falls back to the profile's main language.

  • 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

Profile

Example

query ProfilePreview($locale: String, $profileId: ID!, $seen: String) {
  profilePreview(locale: $locale, profileId: $profileId, seen: $seen) {
    canEdit
    contentLocale
    coverImageAssetId
    createdAt
    departments
    displayName
    id
    kind
  }
}