← All types

DraftPreview

An in-memory preview of a custom app's draft, open for the person who opened it until it is closed or idle.

Fields

id

ID!Non-null

The preview's TypeID (prefix dpv). It names a live, in-memory preview, never a stored record.

token

String!Non-null

Session token for the preview's RPC calls; send it as the X-Preview-Session header.

When the token stops being accepted. This is not the idle timeout: an idle preview ends sooner.

Seconds without a call or an update after which the preview ends itself.

The applied app's data spec, which ctx.store uses in the preview. Null for an app never applied, whose ctx.store calls fail until it is applied.

Problems with the server API source. When there are any, the preview holds no server API (or keeps its last working one).

Referenced by (1)
Exact type SDL
"""
An in-memory preview of a custom app's draft, open for the person who opened it until it is closed or idle.
"""
type DraftPreview {
  """
  The preview's TypeID (prefix `dpv`). It names a live, in-memory preview, never a stored record.
  """
  id: ID!
  """
  Session token for the preview's RPC calls; send it as the X-Preview-Session header.
  """
  token: String!
  """
  When the token stops being accepted. This is not the idle timeout: an idle preview ends sooner.
  """
  expiresAt: ISO8601!
  """
  Seconds without a call or an update after which the preview ends itself.
  """
  idleTimeoutSeconds: Int!
  """
  The applied app's data spec, which ctx.store uses in the preview. Null for an app never applied, whose ctx.store calls fail until it is applied.
  """
  appliedDataContainerSpec: String
  """
  Problems with the server API source. When there are any, the preview holds no server API (or keeps its last working one).
  """
  problems: [DraftPreviewProblem!]!
}