Thanks again @matthewmcneely, I appreciate your help with this.
I do have access to the docker logs. I simplified the code and added in the console.log per your suggestion, so it looks like:
async function visitCount( { parent } ) {
console.log(parent);
return guest_visit_dates.size;
}
self.addGraphQLResolvers({
"Guest.guest_visit_count": visitCount
})
I don’t see anything showing up in the Docker log at all though. Is it possible that the .js is not getting loaded into the container?
I’m starting the container using the command:
docker run --detach --rm -p 8686:8686 -v /path/to/visitcount.js:/app/script/visitcount.js -e DGRAPH_URL=:8080/ dgraph-lambda:1.3.0
Thanks,
Matt