Hi Guys, I’m having Problem saving an object in the database.I can save all fields but one which contains an object {}. I can see the data in the object on console (is there) but the field remains empty on Backendless database. The field is type String, the object has < 500 chars, also changed to Text and got the same result. an empty field. Ex:
Axios({
url: url,
method: ‘post’,
headers: {‘Content-Type’: ‘application/json’},
data = {
userId: ‘String’, OK
sellerId: ‘String’, OK
specials: {25781720-A1DF-07D1-FFE5-1B311D2DC800%3f33: {…}}, <= Not saving this object
specialFullPrice: ‘String’, OK
};
}).then…
I am not sure how to use this example. Could you attach the file or project that I can run somehow or add a sample that I can copy and paste to the console browser or somewhere else.
Ok, now I understand. It is not accepted as a String because it is not a string, it is an object. That is why it does not save to the specials field. I think that specials should have Data object relationship type one to many according to the name of the field. Check out hot to save relations to the object https://backendless.com/docs/rest/data_explicit_relation_list.html