Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32386

IDL should allow custom types for command's first element

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Platforms 2018-01-01

      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.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: