peburrows / diplomat

Elixir library for interacting with Google's Cloud Datastore
94 stars 22 forks source link

A dot (.) in a property name causes an error #33

Open peburrows opened 6 years ago

peburrows commented 6 years ago

Attempting to push something like:

%{"my.key" => "value"}

Will result in the following error:

{:error, 
  %Diplomat.Proto.Status{code: 3, 
    details: [], 
    message: "property.name contains a path delimiter, \
              and the entity contains one or more indexed entity value."}}

This is expected, but there ought to be a way to have Diplomat transparently account for this and prevent the error.