Sha256: 2a1566609516f3150774f8847fb1defddc9fa7c4e60a5309927fc20a63000d18
Contents?: true
Size: 555 Bytes
Versions: 6
Compression:
Stored size: 555 Bytes
Contents
module GraphqlPagination module CollectionType def collection_type @collection_type ||= begin type_name = "#{graphql_name}Collection" source_type = self Class.new(GraphQL::Schema::Object) do graphql_name type_name field :collection, [source_type], null: false field :metadata, GraphqlPagination::CollectionMetadataType, null: false def collection object end def metadata object end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems