This is a proof of concept project where we tight up a DocumentDB instance with complex (nested) types with several SQLite mobile clients using Azure Mobile Apps with Offline Sync.
MIT License
This is a proof of concept project where we tight up a DocumentDB instance with complex (nested) types with several SQLite mobile clients using Azure Mobile Apps with Offline Sync. In this project we are trying to achieve following features:
Key points:
{
"text": "Mew task ios",
"nested": {
"nestedText": "144 J B Hazra Road",
"nestedBool": "false"
},
"nestedItems": [
{
"nestedText": "xxoxoxoxoxox",
"nestedBool": "true"
}
],
"complete": true,
"id": "8d16700a-fcc0-4453-b740-e3eef8c0c340",
"version": null,
"createdat": "2017-01-11T12:27:24.1394782+00:00",
"updatedat": "2017-01-11T14:24:03.4335527+00:00",
"deleted": false
}
Unfortunately, nested objects/collections can only be stored as strings/JSON in SQLite store on mobile client:
We achieved this by implementing a custom Expand attribute to include nested objects when sending data from Azure Mobile App to client. We used it in our TableController here