Module: GraphqlRails::Router::PlainCursorEncoder

Defined in:
lib/graphql_rails/router/plain_cursor_encoder.rb

Overview

simplest possible cursor encoder which returns element index

Class Method Summary collapse

Class Method Details

.decode(plain, _nonce) ⇒ Object



11
12
13
# File 'lib/graphql_rails/router/plain_cursor_encoder.rb', line 11

def self.decode(plain, _nonce)
  plain
end

.encode(plain, _nonce) ⇒ Object



7
8
9
# File 'lib/graphql_rails/router/plain_cursor_encoder.rb', line 7

def self.encode(plain, _nonce)
  plain
end