[SERVER-17953] Implement Driver CRUD API Spec in shell Created: 09/Apr/15  Updated: 15/Jun/20  Resolved: 10/Aug/15

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 3.1.7

Type: New Feature Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Christian Amor Kvalheim
Resolution: Done Votes: 2
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-6010 Driver's CRUD API Spec implemented in... Closed
Related
related to SERVER-48780 bulkWrite() in mongo shell does not c... Closed
related to SERVER-21273 Implement Driver CRUD API Spec for .e... Closed
related to SERVER-26642 JS compiled code string length limit ... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

Application developers generally use two APIs: a driver and the shell. As one of my readers points out, this makes API conformance between the drivers and the shell at least as important as conformance among drivers.

Let's implement the Driver CRUD API Spec in the shell: insertOne, insertMany, findOneAndDelete, etc. The old APIs can be deprecated, or not. The spec is written to avoid breaking backwards compatibility so existing mongo shell scripts and examples will keep working.



 Comments   
Comment by Githook User [ 04/Aug/15 ]

Author:

{u'username': u'christkv', u'name': u'Christian Kvalheim', u'email': u'christkv@gmail.com'}

Message: SERVER-17953 Implement Driver CRUD API Spec in shell

Closes #1004.

Signed-off-by: Max Hirschhorn <max.hirschhorn@mongodb.com>

  • Moved CRUD API implementation into separate file to workaround 65K
    string length compiler limit on Windows.
Comment by Daniel Pasette (Inactive) [ 20/Apr/15 ]

Assigning to Christian as discussed with @erlichson

Comment by A. Jesse Jiryu Davis [ 11/Apr/15 ]

Note the test suite for compliance:

https://github.com/mongodb/specifications/tree/master/source/crud/tests

This'll help validate the shell's API matches drivers'.

Generated at Thu Feb 08 03:46:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.