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

Provide a way to perform an upsert in the Stitch Support Library

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Fully Compatible
    • Query 2019-01-28, Query 2019-02-11

      Stitch needs a way to see the result of an update operation that finds no document and so has to create a new document based on the query and update document (an upsert).

      One possibility is modifying stitch_support_v1_update_apply() so that it uses upsert behavior when the 'documentBSON' argument is NULL.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            justin.seyster@mongodb.com Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: