I upgraded to 1.6.0 and now all databases.createDocument(...) calls from functions are broken.
The call does not create a document and instead it returns a list of documents (like when you call databases.listDocuments())
TL;DR
Developers are experiencing an issue where databases.createDocument() in node-appwrite 1.6.0 returns a list of documents instead of creating a new document.