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
Crushed when edit document #1405
Comments
And two questions: 1 readme example documentUse example document in Readme: https://github.com/mongo-express/mongo-express/blob/master/README.md?plain=1#L358 got an error:
2 package sourceWhy not use https://github.com/mongodb-js/devtools-shared/tree/main/packages/query-parser instead of https://github.com/rtritto/query-parser? |
I did the branch rtritto/query-parser#fix-mismatch-bindata-subtype as the PR on mongodb-js/query-parser to fix #1249 and it wasn't merged. To patch the issue #1249, I used #1289 (branch rtritto/query-parser#4.0.0-fix-bindata). On the 8/1/24, the repository mongodb-js/query-parser is moved to repository mongodb-js/devtools-shared/query-parser and Currently the #1249 has not yet been fixed on mongodb-js/devtools-shared/query-parser. mongodb-js/query-parser issues were tracked on GitHub while mongodb-js/devtools-shared/query-parser issues are tracked on Jira. mongodb-js/query-parser repository is removed with my PR, so it's needed to open an issue to Jira. If it's not needed, I'll wait the fix for #1249 on mongodb-js/devtools-shared/query-parser and then replace the dependency in Edit: On Jira I opened issue https://jira.mongodb.org/browse/COMPASS-7644 |
This issue is related to import parser from 'mongodb-query-parser'
parser(`{ func: Code(function() { alert('Hello World!') }) }`) The output is an empty string instead of the converted object.
The example and the link are outdated. The example should be at least: Timestamp({ t: <high>, i: <low> }) And the doc: https://www.mongodb.com/docs/manual/reference/bson-types/#timestamps |
Document:
Result:
Cause:
https://github.com/mongo-express/mongo-express/blob/master/lib/routes/document.js#L84
docBSON = bson.toBSON(doc);
got an empty string, so there is no_id
attribute on a string.Is this an upstream bug of https://github.com/rtritto/query-parser?
The text was updated successfully, but these errors were encountered: