If you go to “Linked Data Sources” in the UI then you will see the Service Name you have set your cluster(s) to and that is what is supposed to go there.
Tyler, thanks for confirming that my context.services.get() call is working properly. I wasn’t aware, but it makes sense that the return object may not be entirely visible. It may be a permissions issue I’m having in terms of the user the trigger is running under - may not have access to my db. But I am issuing the db command like this:
// 2. Get a database & collection const db = mongodb.db("myDatabase")
and that has worked for me in the past. I’ll have to look into setting up and confirming the auth for the trigger.
I think you may have meant to post more code than that. If you want to test if it is just a permissions issue, you should be able to set your function to “Run as System User” in which case the permissions of the user are not evaluated.