Unable to create collection

Screenshot_1

Whenever I click on create collection it says: “Single connection to server type. Secondary not writable”
What should I do?? :frowning:

Hi,
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.

1 Like