Cant read data from collection in MongoDB Atlas Trigger

New to MongoDB, very new to Atlas. I’m trying to set up a trigger such that it reads all the data from a collection named Config. This is my attempt:

const mongodb = context.services.get(“Cluster0”);
const db = mongodb.db(“TestDB”);
var collection = db.collection(“Config”);
config_docs = collection.find().toArray();
console.log(JSON.stringify(config_docs));

the function is part of an automatically created realm application called Triggers_RealmApp, which has Cluster0 as a named linked data source. When I go into Collections in Cluster0, TestDB.Config is one of the collections.

Some notes:

If anyone can provide any feedback at all I would really appreciate it. I want to use Mongo to do backend processing work, but without the ability to talk to the database I am 100% stuck. Anything to lead me in a direction would be great!