I have a field in my table that stores some data in jsonb format. I want to create an embedded resource so I will get it already parsed instead of getting a map and have to parse it myself.
As far as I can tell, the only thing that a embedded resource has that my jsonb don’t have already is the :autogenerated_id
field.
It doesn’t seems like this field is mandatory since I can use the read action and it will parse it to the embedded resource just fine even if that field is missing.
So, my question is, what is the purpose of the :autogenerated_id
field? Is it safe to have a jsonb in the database that has all the correct fields of the embedded resource but don’t have the :autogenerated_id
field?