View Source Ravix.Documents.Metadata (ravix v0.2.2)

Functions related to document metadata management

Link to this section Summary

Functions

Adds the metadata to the entity

Builds the metadata for the informed document

Link to this section Functions

Link to this function

add_metadata(entity, metadata)

View Source
@spec add_metadata(map(), nil | map()) :: map()

Adds the metadata to the entity

Link to this function

build_default_metadata(entity)

View Source
@spec build_default_metadata(map()) ::
  nil | %{:"@collection" => any(), optional(any()) => any()}

Builds the metadata for the informed document