Hi there fellow coders,
Maybe one of you could bridge the gap I seem to be having.
I'm new to Mongo and tried to set up a database. Then created a Realm App.
According to the documentation (https://docs.mongodb.com/realm/web/mongodb/), I need to link a data source(https://docs.mongodb.com/realm/mongodb/link-a-data-source/).
Having done that, the doco seems to indicate I should be able to use the line:
const mongo = app.services.mongodb("<atlas service name>");
However, I get an error saying "Cannot read property 'mongodb' of undefined". Obviously, it's because there is no services against app.
I tried looking this up online, but found no answers. Hoping someone experienced could guide me as to what is missing or what I'm clearly not seeing.
TIA!
