ds_wrapper v0.1.1 DsWrapper.Value View Source

GoogleApi.Datastore.V1.Model.Value wrapper

Link to this section Summary

Link to this section Functions

Link to this function

from_native(value, exclude_from_index \\ nil)

View Source

Convert to a GoogleApi.Datastore.V1.Model.Value.

Examples

iex> DsWrapper.Value.from_native(123)
%GoogleApi.Datastore.V1.Model.Value{integerValue: "123"}

iex> DsWrapper.Value.from_native(123, true)
%GoogleApi.Datastore.V1.Model.Value{integerValue: "123", excludeFromIndexes: true}

Convert from a GoogleApi.Datastore.V1.Model.Value.

Examples

iex> DsWrapper.Value.to_native(%GoogleApi.Datastore.V1.Model.Value{integerValue: "123"})
123