Options required in rewrapManyDataKey() TS signature

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • None
    • Hide

      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.

      Show
      Create a copy of the Kickoff Template with the issue key (NODE-XXX) in the filename and share a link to the new doc via this field.
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Use Case

      As a nodejs driver user
      I want to be able to execute methods as they described
      So that I can rely on documentation & typescript types

       

      ```
      * @example
      * ```ts
      * // rewrapping all data data keys (using a filter that matches all documents)
      * const filter = {};
      *
      * const result = await clientEncryption.rewrapManyDataKey(filter);
      * if (result.bulkWriteResult != null) {
      * // keys were re-wrapped, results will be available in the bulkWrite object.
      * }
      *
      ```
      

      but options marked as required in the interface:

      ```
      async rewrapManyDataKey(
      filter: Filter<DataKey>,
      options: ClientEncryptionRewrapManyDataKeyProviderOptions
      ): Promise<\{ bulkWriteResult?: BulkWriteResult }> {
      ```
      

      User Experience

      • Autogenerated documentation and typescript types match

      Dependencies

      • None

      Risks/Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Mark options as optional

      Testing Requirements

      • TS test

      Documentation Requirements

      • N/A

      Follow Up Requirements

      • N/A

            Assignee:
            Sergey Zelenov
            Reporter:
            Sergey Zelenov
            Bailey Pearson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: