GraphQL - Return the Size of an Array Field?

Thanks @matthewmcneely - I actually just made it past the first error - I needed to open the 8686 port in the local firewall on the EC2 running the dgraph-lambda container.

My current error is:

Evaluation of custom field failed because external request returned an error: unexpected error with: 400 for field: guest_visit_count within type: Guest

Is there way to validate the Javascript definition?

On the dgraph-lambda server itself, I tried running:
curl localhost:8686/graphql-worker -H "Content-Type: application/json" -d '{"resolver":"Guest.guest_visit_count","parent":[{"guest_visit_count":"Dgraph Labs"}]}'

but I don’t get any response at all.

I have added the --graphql superflag and the lambda-url to the alpha startup command.

I have the Javascript defined as:

async function visitCount( { parent } ) {
           let guest_visit_count = guest_visit_dates.size;
           return guest_visit_count;
}
self.addGraphQLResolvers({
          "Guest.guest_visit_count": visitCount,
});