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

Documentation: Mongo API version? #162

Closed
apowers313 opened this issue Feb 20, 2018 · 5 comments
Closed

Documentation: Mongo API version? #162

apowers313 opened this issue Feb 20, 2018 · 5 comments

Comments

@apowers313
Copy link
Contributor

The Tingo documentation says that "The rest is plain MongoDB API" and links to the MongoDB API; however, it's not clear what version of the API it is referring to... 2.2? 3.0?

After reading the MongoDB API, insert is deprecated so I used insertOne as recommended by the MongoDB docs. Unfortunately, it seems like TingoDB doesn't implement insertOne?

Hopefully a quick fix to this is just changing the link and documentation to point to the correct version of the MongoDB API.

@apowers313
Copy link
Contributor Author

Actually, this is probably related to #160 as well.

@sergeyksv
Copy link
Owner

API is strictly compatible to 1.4.x. 2.x and above are not fully supported. The reality is that 2.x was very poorly handled by MongoDB NodeJS driver maintainers when like 2.0.37 might break compatibility with 2.0.36 so we just have no any motivation to keep that strange API breakage game. Keep in mind that this is not related to MongoDB version, 1.4.x driver can work up to MongoDB 3.4.

@apowers313
Copy link
Contributor Author

Very helpful, thanks!

Can you change the link here to read "MongoDB API (version 1.4.x)" and change the link to this page: http://mongodb.github.io/node-mongodb-native/1.4/ . Or let me know if there's some way that I can submit a PR to do the same?

@sergeyksv
Copy link
Owner

@apowers313 Clone, make a change, submit PR. Thanks!

@apowers313
Copy link
Contributor Author

Is the website in a GitHub repo somewhere?

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

No branches or pull requests

2 participants