This is intended. There’s a breaking change in Realm Web 1.0.0-rc.1 altering the API to align with the Realm JS API where services and functions are available from the User instance:
const mongo = user.mongoClient("<atlas service name>");
const db = mongo.db("<my-database-name>");
const collection = db.collection("<my-collection-name>");