Closed brunopedroso closed 7 years ago
sorry for that, this is coming from https://github.com/hoodiehq/hoodie-store-client/releases/tag/v8.0.0
sure... I saw that... And it looks like it was fixed (now theres a serializer in readme, with the config for _id).
But maybe this is not such a common scenario (setting the ids) and had not been tested...?
Anyway. Tks! ;-)
When I set the
id
field for new records, its not correctly serialized, and is therefore ignored (the db will generate it's own id instead).When I try to save it...
... ember-data raises an error:
and, when I query the saved record, I see this:
Note the
id
and_id
fields...