Class: Ecoportal::API::GraphQL::Mutation::AiSummary::Generate
- Inherits:
-
Logic::Mutation
- Object
- Logic::BaseQuery
- Logic::Mutation
- Ecoportal::API::GraphQL::Mutation::AiSummary::Generate
- Defined in:
- lib/ecoportal/api/graphql/mutation/ai_summary/generate.rb
Overview
Triggers AI summary generation for a page or stage. Returns an AiSummaryVersion.
★ Corrected 2026-07-30 against the live schema — the previous wiring could never run:
the mutation is generatePageSummary(input: GenerateInput!), NOT generateAiSummary
with flat pageId/stageId arguments, and AiSummaryVersion has no token fields.
stage_id is optional: omit for a page-level summary, pass it for stage-level.
Instance Method Summary collapse
Methods inherited from Logic::Mutation
Instance Method Details
#query(page_id:, stage_id: nil, **kargs, &block) ⇒ Object
18 19 20 21 22 |
# File 'lib/ecoportal/api/graphql/mutation/ai_summary/generate.rb', line 18 def query(page_id:, stage_id: nil, **kargs, &block) input = { pageId: page_id } input[:stageId] = stage_id if stage_id super(input: input, **kargs, &block) end |