Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-working code example in the "validate()" topic (MongoDB Roadmap) #4537

Closed
1 task
naXa777 opened this issue Oct 3, 2023 · 0 comments · Fixed by #5466
Closed
1 task

Non-working code example in the "validate()" topic (MongoDB Roadmap) #4537

naXa777 opened this issue Oct 3, 2023 · 0 comments · Fixed by #5466
Labels

Comments

@naXa777
Copy link

naXa777 commented Oct 3, 2023

What is the URL where the issue is happening

https://roadmap.sh/mongodb

What browsers are you seeing the problem on?

Chrome

Describe the Bug

In your guide, I've found a code db.runCommand({ validate: 'products', background: true, full: true }); that doesn't work. I get error in MongoDB 6.0:

Command failed with error 72 (InvalidOptions): 'Running the validate command with both { background: true } and { full: true } is not supported.' on server

This issue is related specifically to https://github.com/kamranahmedse/developer-roadmap/blob/master/src/data/roadmaps/mongodb/content/102-collections/106-validate.md?plain=1#L32

The official MongoDB documentation doesn't even mention the background option. See https://www.mongodb.com/docs/manual/reference/command/validate/

So I have to admit that the mention of background option in your guide creates some confusion.

Output from browser console (if any)

No response

Participation

  • I am willing to submit a pull request for this issue.
@naXa777 naXa777 added the bug label Oct 3, 2023
@naXa777 naXa777 changed the title Non-working code example in the "validate()" topic Non-working code example in the "validate()" topic (MongoDB Roadmap) Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant