Rank 1: Thread
So I am trying to take full advantage of the new function capabilities via context.log & context.error but am running into issues with getting that to work.
Current Implementation
index.js
// I've tried bothmodule.exports = async function (req, res, log, error) {// module.exports = async function ({ req, res, log, error }) {...log("blah blah blah")...}I recieve this error
TypeError: log is not a function
package.json in case that matters
{ "name": "appwrite-function", "version": "1.0.0", "description": "", "main": "src/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "node-appwrite": "^11.0.0", }}I would also like to point out that the documentation for NodeJS Functions is different depending on where you look:
https://appwrite.io/docs/functions-develop
vs
https://github.com/appwrite/functions-starter/blob/main/node-16.0/src/index.js
I couldn't get the first example to work due to module errors around import so I just used the functions-starters. I am using appwrite-cli if that helps.
Appreciate any insight!
