The code is as follows. It was placed in js inside, not on the console.
The two errs are as follows:
Not master may be because my mongodb is hosted on another website mongohq. how do you solve this problem? ? This shrimp is a beginner, please ask Daniel for advice! !
Did you use more than one mongoUrl when configuring?