Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-3277

elem_match and atomically

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0
    • Affects Version/s: None
    • Component/s: None

      Hi I am using version 4 and wanted to do the following 'atomically' but not having alot of luck with the atomically block:

      User.elem_match(groups:

      {'events.uuid' => events[ele_index]['uuid']}).inc(inc_selector => 1 )

      User.elem_match(groups: {'events.uuid' => events[ele_index]['uuid']}

      ).push(push_selector => like_by_id)

      Any idea how i can do that?

      Thanks
      Charlie

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            klclee klclee
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: