Method: GraphQL::Pagination::Connection#start_cursor

Defined in:
lib/graphql/pagination/connection.rb

#start_cursorString

Returns The cursor of the first item in #nodes.

Returns:

  • (String)

    The cursor of the first item in #nodes



206
207
208
# File 'lib/graphql/pagination/connection.rb', line 206

def start_cursor
  nodes.first && cursor_for(nodes.first)
end