graveyard v0.2.1 Graveyard.Record View Source

This the basic entity of graveyard.

Link to this section Summary

Functions

Find a record by id. Returns the record if existent, nil otherwise

Stores a map into ElasticsSearch. Returns {:ok, record} if success, {:error, error} otherwise

Link to this section Functions

Link to this function destroy(id, opts \\ %{}) View Source

Find a record by id. Returns the record if existent, nil otherwise

Link to this function insert(raw, opts \\ %{}) View Source

Stores a map into ElasticsSearch. Returns {:ok, record} if success, {:error, error} otherwise

Link to this function search(filters \\ [], page \\ 1, page_size \\ 10) View Source