ds_wrapper v0.1.1 DsWrapper.Entity View Source
Link to this section Summary
Functions
Convert GoogleApi.Datastore.V1.Model.Entity
's properties to a Map.
Link to this section Functions
Create a new GoogleApi.Datastore.V1.Model.Entity
.
Examples
iex> key = DsWrapper.Key.new("SomeKind", "some-name")
iex> properties = %{"some_property" => "some value"}
iex> DsWrapper.Entity.new(key, properties)
%GoogleApi.Datastore.V1.Model.Entity{...}
Link to this function
to_map(arg1)
View Sourceto_map( nil | GoogleApi.Datastore.V1.Model.EntityResult.t() | GoogleApi.Datastore.V1.Model.Entity.t() ) :: %{required(String.t()) => term()}
Convert GoogleApi.Datastore.V1.Model.Entity
's properties to a Map.
Examples
iex> DsWrapper.Entity.to_map(entity)
%{"some_property" => "some value"}