GraphQL - Return the Size of an Array Field?

@matthewmcneely - I got it working, thank you very much for your help!

Here’s what it took -

Since there was no indication of the script attempting to execute in the docker logs, I logged into the container to verify that the script was mounting correctly.

I noticed that the script permissions were initially:

-rwx------ 1 root root 198 Aug 5 22:07 visitcount.js
-rw-rw-r-- 1 app app 688 Mar 10 2021 script.js

I opened up the permissions on visitcount.js but it still didn’t work.

I then mounted my “visitcount.js” named as “script.js” and made sure the permissions were opened up - then I saw activity in the docker logs and my query returned correctly!

I didn’t realize that the name of the mounted script actually had to be named “script.js”, I presumed that was just a placeholder value on the documentation page - lesson learned.

I appreciate you sticking with me and pointing me in the right direction. Thanks again!!

-Matt

1 Like