Skip to content

adding commas to the code-block containing the example documents #3267

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

Closed
wants to merge 1 commit into from
Closed

adding commas to the code-block containing the example documents #3267

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Mar 24, 2018

missing commas on this code block cause insert to fail.

as is:

> db.test.insert({ _id: 1, a: [ { loc: "A", qty: 5 }, { qty: 10 } ] }
... { _id: 2, a: [ { loc: "A" }, { qty: 5 } ] }
... { _id: 3, a: [ { loc: "A", qty: 10 } ] })
2018-03-24T08:26:45.803-0400 E QUERY    [thread1] SyntaxError: missing ) after argument list @(shell):2:0

with commas added:

> db.test.insert({ _id: 1, a: [ { loc: "A", qty: 5 }, { qty: 10 } ] },
... { _id: 2, a: [ { loc: "A" }, { qty: 5 } ] },
... { _id: 3, a: [ { loc: "A", qty: 10 } ] })
WriteResult({ "nInserted" : 1 })
> 

This change is Reviewable

missing commas on this code block cause insert to fail.
@ghost
Copy link
Author

ghost commented Mar 27, 2018

example data sets in most if not all places don't have commas. This pull request is not the right solution. Personally, I think all example data sets should have commas unless I'm missing something, which is entirely possible.

@ghost ghost closed this Jul 7, 2018
@ghost ghost deleted the patch-1 branch July 7, 2018 16:05
mongo-cr-bot pushed a commit that referenced this pull request Jun 2, 2023
…3267)

* DOCSP-30317 fixed link on Authenticate a User (#3257)

* DOCSP-30317 fix link

* DOCSP-30317 line break

* DOCSP-30317 fix second link

* DOCSP-30317 fix number of characters on line

* DOCSP-30317-backport-v6.0 build error
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants