Class: Ecoportal::API::GraphQL::Query::PageActivities

Inherits:
Logic::QueryConnection show all
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' }] }.

Method Summary

Methods inherited from Logic::QueryConnection

#each, #response_class