Skip to content

Conversation

haoxins
Copy link
Member

@haoxins haoxins commented Jan 13, 2015

No description provided.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious about why the results is

{ 
  result: { ok: 1, ... },
  connection: {...},
  ...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only issue i can think of is when a document actually has .result as a property. are there more properties we can check?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.update() not return the document.
the results from node-mongodb-native@2 is something like

{
  result: {
    ok: 1,
    nModified: 1,
    n: 1
  },
  connection: {...}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this is only when updating documents... yeah it's fine.

@jonathanong
Copy link
Contributor

whoops. yeah some v2 changes.

@jonathanong jonathanong merged commit ca7e4b3 into mongodb-utils:master Jan 14, 2015
@haoxins haoxins deleted the fix-assert branch January 14, 2015 08:57
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.

2 participants