Whenever I click on create collection it says: “Single connection to server type. Secondary not writable”
What should I do??
That’s because you’re connected to the second node in the cluster. We must connect to the primary node to be able to perform write operations.
Please have a look this video again
Connecting to Your Sandbox Cluster from the mongo Shell
Thanks for the help.