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

XMLWordPrintableJSON

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

      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
            Reporter:
            Justin Seyster
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: