2

I need to know where I can find the reference resource for MongoDB runCommand.

i.e. what kind of commands are available and what kind of optional parameters each command can use.

For example,

db.runCommand({addshard: "10.0.4.85:27020", allowLocal : 1, maxSize:2, minKey: 1, maxKey:10});

Thank you

// Update //

maxSize is documented here maxSize

1 Answer 1

2

Check out the MongoDB Command Reference (PDF) for a list of the most frequently used. Also, to get a full list, the card also provides this tip:

To get a list of all commands available on your version of the server, run mongod --rest and then visit http://localhost:28017/_commands in your web browser

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.