On Jan 20, 2014, at 2:14 PM, Ryan Payne
<[email protected]<mailto:[email protected]>> wrote:
I have a generic base document class that I use for inserting, and it has an
_attachments property. Not every document has attachments, so it gets inserted
with "_attachments": null
null is not a valid value for _attachments — it needs to be a dictionary. If
you don't have any attachments, use an empty dictionary, "{}".
With the CBL beta 2 API you shouldn't need to manipulate _attachments yourself
… it's cleaner to let CBLRevision and CBLModel do it for you.
—Jens
--
You received this message because you are subscribed to the Google Groups
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mobile-couchbase/97FCB767-21FA-4098-AFE1-FB5D1BC98F27%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.