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

Functions related to document metadata management

Summary

Functions

Adds the metadata to the entity

Builds the metadata for the informed document

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