You have to configure MongoDB Realm/Stitch for access the collection. Make sure your changes are saved/deployed.
I tried setting up stitch once and got into the same problem. Just make sure if the (databasename) or (collectionname) is matching with what you are using in your script. Or just try deleting the collection from there and create a new one.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.