Method: GraphQL::Pagination::Connection#before
- Defined in:
- lib/graphql/pagination/connection.rb
#before ⇒ String?
Returns the client-provided cursor. "" is treated as nil.
39 40 41 42 43 44 45 |
# File 'lib/graphql/pagination/connection.rb', line 39 def before if defined?(@before) @before else @before = @before_value == "" ? nil : @before_value end end |