Module: GraphQL::KaminariConnection
- Defined in:
- lib/graphql/kaminari_connection.rb,
lib/graphql/kaminari_connection/version.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- VERSION =
'1.0.0'
Class Attribute Summary collapse
-
.base_page_data_class ⇒ Object
writeonly
Sets the attribute base_page_data_class.
-
.page_data_type_name ⇒ Object
writeonly
If your schema already has ‘PageData’ type, you can change its name.
Class Method Summary collapse
Class Attribute Details
.base_page_data_class=(value) ⇒ Object
Sets the attribute base_page_data_class
25 26 27 |
# File 'lib/graphql/kaminari_connection.rb', line 25 def base_page_data_class=(value) @base_page_data_class = value end |
.page_data_type_name=(value) ⇒ Object
If your schema already has ‘PageData’ type, you can change its name.
23 24 25 |
# File 'lib/graphql/kaminari_connection.rb', line 23 def page_data_type_name=(value) @page_data_type_name = value end |
Class Method Details
.included(klass) ⇒ Object
9 10 11 |
# File 'lib/graphql/kaminari_connection.rb', line 9 def included(klass) klass.extend ClassMethods end |
.page_data_type ⇒ Class
14 15 16 |
# File 'lib/graphql/kaminari_connection.rb', line 14 def page_data_type @page_data_type ||= define_page_data_type(without_count: false) end |
.page_data_without_count_type ⇒ Object
18 19 20 |
# File 'lib/graphql/kaminari_connection.rb', line 18 def page_data_without_count_type @page_data_without_count_type ||= define_page_data_type(without_count: true) end |