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

Support for $interpolateString

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Atlas Streams

      In Atlas Stream Processing, we are supporting the ability for users to build dynamically their REST API call.  Currently, the only way to do this today is with $concat operators, and after 2 or 3 variables, this becomes highly messy to look at and code.  We are looking for a function such as the following:

      {
      $interpolateString:

      {  template: "[https://foo.com/\{foo}

      /{bar}/{baz}|https://www.google.com/url?q=https://foo.com/%7Bfoo%7D/%7Bbar%7D/%7Bbaz%7D&sa=D&source=docs&ust=1725021938329562&usg=AOvVaw3vMOA6NY9MeZT-IyMRSltt]",
      vars:

      { foo: "foo", bar: $bar, baz: $baz }

      }
      }

       

            Assignee:
            Unassigned Unassigned
            Reporter:
            robert.walters@mongodb.com Robert Walters
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: