Class: Ecoportal::API::GraphQL::Query::PageWithForces
- Inherits:
-
Logic::Query
- Object
- Logic::BaseQuery
- Logic::Query
- Ecoportal::API::GraphQL::Query::PageWithForces
- Defined in:
- lib/ecoportal/api/graphql/query/page_with_forces.rb
Overview
Fetches a single page by ID, including its full forces array.
Used by OozeRedirect::ForceCompat instead of the standard Query::Page
so that page.forces.get_by_name(name) returns populated data.
Usage (via ForceCompat — not typically called directly): page = Query::PageWithForces.new(client).query(id: page_id) force = page.forces.get_by_name('Workflow (S1)').first