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

Change bson parsing to use mongo-query-parser #522

Merged
merged 1 commit into from
Nov 17, 2019

Conversation

dozoisch
Copy link
Collaborator

No description provided.

@dozoisch dozoisch self-assigned this Nov 11, 2019
@dozoisch dozoisch force-pushed the change_document_parsing branch 2 times, most recently from 160b320 to d8c9bda Compare November 11, 2019 05:14
@@ -0,0 +1,19 @@
diff --git a/node_modules/mongodb-query-parser/lib/index.js b/node_modules/mongodb-query-parser/lib/index.js

Choose a reason for hiding this comment

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

Did you intend to leave this file checked in?

Copy link
Collaborator Author

@dozoisch dozoisch Nov 11, 2019

Choose a reason for hiding this comment

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

@JLLeitschuh yep, have to as query-parser was missing support for the $db parameter, and Timestamp was using the new bson format, while the dependency was still using the old format, so needed to make sure they were consistent.

I'll try to PR back the $db parameter in query-parser

var vm = require('vm');
var json = require('./json');
const parser = require('mongodb-query-parser');
const ESJON = require('mongodb-extended-json');
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unfortunately, can't update bson until mongodb-query-parser is updated to a more recent version.

@dozoisch dozoisch merged commit c7c9149 into mongo-express:master Nov 17, 2019
@dozoisch dozoisch deleted the change_document_parsing branch November 17, 2019 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants