Class: Ecoportal::API::GraphQL::Query::PageActivities
- Inherits:
-
Logic::QueryConnection
- Object
- Logic::Query
- Logic::QueryConnection
- Ecoportal::API::GraphQL::Query::PageActivities
- Defined in:
- lib/ecoportal/api/graphql/query/page_activities.rb
Overview
Page history / activity feed on page.activities, returning an
ActivityInterfaceConnection. Resolves under
currentOrganization.page(id:).activities(...).
Organization.page(id:) returns a PageUnion (BasicPage | PhasedPage), so the
activities connection is selected via inline fragments on both members —
provided by the :PageActivities fragment (which also carries the connection
selection via :ActivityConnection). The connection selection is therefore
fixed by the fragment; a custom connection block is not accepted here.
The web "page history changelog" feature drives this with
searchConf: { sorters: [{ direction: 'desc', key: 'updated_at' }] }.