triniwiz / nativescript-couchbase-plugin

Apache License 2.0
52 stars 19 forks source link

Feature/fix null values #7

Closed jerbob92 closed 5 years ago

jerbob92 commented 5 years ago

This PR fixes objects that contain null values. Normally null values would be seen as an type object, and then it would fail on something in the case 'object'. This change will not save the null values, I'm not sure whether this is a correct solution. I could not figure out how to properly save null values. Since we decode the objects back into typescript classes, we don't need the null values.

I also fixed a bug with embedded objects. The code object.setDictionary(key, object); would create a reference to itself, this does not work, I figured it was a programming error, so I changed it to object.setDictionary(key, nativeObject);

triniwiz commented 5 years ago

Thanks 😃