You're seeing just the function get_cursor_from_map, go back to Flop.Cursor module for more information.
Link to this function

get_cursor_from_map(item, order_by)

View Source (since 0.8.0)


get_cursor_from_map(map(), [atom()]) :: map()

Takes a map or a struct and the order_by field list and returns the cursor value.

This function is used as a default if no :get_cursor_value_func option is set.

iex> record = %{id: 20, name: "George", age: 62}
iex> Flop.Cursor.get_cursor_from_map(record, [:id])
%{id: 20}
iex> Flop.Cursor.get_cursor_from_map(record, [:name, :age])
%{age: 62, name: "George"}