Class: Ecoportal::API::GraphQL::Payload::Page::Draft
- Inherits:
-
Logic::Payload
- Object
- Logic::BaseModel
- Logic::Payload
- Ecoportal::API::GraphQL::Payload::Page::Draft
- Defined in:
- lib/ecoportal/api/graphql/payload/page/draft.rb
Overview
Payload of the three draft mutations. ★ None of their schema payload types has an
item (verified against the live schema 2026-07-30) — they return scalars:
createPageDraft -> CreatePageDraftPayload { id } the new draft's page id
deleteDraftPage -> DeleteDraftPagePayload { ok }
publishDraftPage -> PublishDraftPagePayload { ok }
All three used to select item { ...PageFields }, which made them invalid documents.
item stays inherited from Logic::Payload for interface compatibility, but with no
item in the response it materialises a HOLLOW model (all fields nil) rather than
returning nil — read id / ok instead.