[SERVER-32386] IDL should allow custom types for command's first element Created: 18/Dec/17  Updated: 30/Oct/23  Resolved: 29/Dec/17

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

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platforms 2018-01-01
Participants:

 Description   

MongoDB commands expect the first field to be named with the command name, and it can be either a scalar, an array or an object. The original IDL supported two variations for this command parameter. IDL should be extended to take a custom type in declarative form.

For example, imagine a command that prints a string, it could be represented in IDL as:

    PrintCommand:
        description: Command that prints its argument
        namespace: type
        type: string

Instead of namespace being limited to "ignore" and "concatentate_with_db", it will support an additional value called "type". When type is specified, the command must contain an additional field called "type" which refers to an existing type, struct, or an array of type/struct. It should support all the types that a field in a struct can support.



 Comments   
Comment by Githook User [ 29/Dec/17 ]

Author:

{'name': 'Mark Benvenuto', 'username': 'markbenvenuto', 'email': 'mark.benvenuto@mongodb.com'}

Message: SERVER-32386 IDL should allow custom types for command's first element
Branch: master
https://github.com/mongodb/mongo/commit/449905c81af3803ebb16eb8f7ca779ae783517d9

Generated at Thu Feb 08 04:30:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.