Module: Gitlab::Graphql::Pagination::Connections

Defined in:
lib/gitlab/graphql/pagination/connections.rb

Class Method Summary collapse

Class Method Details

.use(schema) ⇒ Object


7
8
9
10
11
12
13
14
15
# File 'lib/gitlab/graphql/pagination/connections.rb', line 7

def self.use(schema)
  schema.connections.add(
    ActiveRecord::Relation,
    Gitlab::Graphql::Pagination::Keyset::Connection)

  schema.connections.add(
    Gitlab::Graphql::ExternallyPaginatedArray,
    Gitlab::Graphql::Pagination::ExternallyPaginatedArrayConnection)
end