I know the benefits of an object database is that the data can be loaded and saved in the format you will probably be using it in. But if i'm loading an object from a database, manipulating it on the client, and sending it back, how do I ensure new data doesn't maliciously get in?
[GET] => /users/1
{
"name": "john doe"
}
[PUT] => /users/1
{
"name": "john doe",
"extra properties": "just cluttering your db"
}
That also brings up the question as to how you prevent a number getting set as an int? Is there a schema you can attach to a database? Do you need to use a mapper?