Is there a way to print the contents of doc
in the Sync Function? I have tried toString()
, toMap()
and toPlainMap()
like this:
throw ({ forbidden: "New document is missing id property, id is " + doc.id + " and doc is " + doc.toString() });
but all of these are not working. I somehow want do debug what data doc
contains as I assume that some data I expect to be there is missing.