Class: Eco::API::UseCases::GraphQL::Helpers::Dashboards::Base::Reader
- Includes:
- Base::ConnectionReader
- Defined in:
- lib/eco/api/usecases/graphql/helpers/dashboards/base/reader.rb
Overview
NATIVE reader over currentOrganization.dashboardSearch (MinimalDashboardConnection).
Lazily paginates and yields Model::MinimalDashboard records.
Use via Helpers::Dashboards::Base#dashboards:
dashboards(query: 'safety').each { |d| ... }
dashboards.to_a
Constant Summary
Constants included from Base::ConnectionReader
Base::ConnectionReader::DEFAULT_PAGE_SIZE
Instance Method Summary collapse
-
#initialize(graphql, search_conf: nil) ⇒ Reader
constructor
A new instance of Reader.
Methods included from Base::ConnectionReader
#each, #page_size, #page_size=, #to_a
Constructor Details
#initialize(graphql, search_conf: nil) ⇒ Reader
Returns a new instance of Reader.
14 15 16 17 |
# File 'lib/eco/api/usecases/graphql/helpers/dashboards/base/reader.rb', line 14 def initialize(graphql, search_conf: nil) @graphql = graphql @search_conf = search_conf end |