2019-02-15 15:39:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
module Gitlab
|
|
|
|
module Graphql
|
|
|
|
module Connections
|
|
|
|
def self.use(_schema)
|
|
|
|
GraphQL::Relay::BaseConnection.register_connection_implementation(
|
|
|
|
ActiveRecord::Relation,
|
2019-12-26 22:10:19 +05:30
|
|
|
Gitlab::Graphql::Connections::Keyset::Connection
|
|
|
|
)
|
|
|
|
GraphQL::Relay::BaseConnection.register_connection_implementation(
|
|
|
|
Gitlab::Graphql::FilterableArray,
|
|
|
|
Gitlab::Graphql::Connections::FilterableArrayConnection
|
2018-11-08 19:23:39 +05:30
|
|
|
)
|
2020-03-09 13:42:32 +05:30
|
|
|
GraphQL::Relay::BaseConnection.register_connection_implementation(
|
|
|
|
Gitlab::Graphql::ExternallyPaginatedArray,
|
|
|
|
Gitlab::Graphql::Connections::ExternallyPaginatedArrayConnection
|
|
|
|
)
|
2018-11-08 19:23:39 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|