lib/arcade/base.rb
def update **args
        if args.keys.include?(:set) && args.keys.include?(:where)
          args.merge!( updated: DateTime.now ) if timestamps
          query( **( { kind: :update }.merge args ) ).execute{|r| r[:"$current"].load_rid }
        else
          raise "at least set: and where: are required to perform this operation"
        end
      end
# update returns a list of updated records
#
# It fires a query   update <type> set <property> = <new value > upsert return after $current where  < condition >
#
# which returns a list of modified rid's
#
#  required parameter:  set:
#                     where:
#
#todo refacture required parameters notification
#
update returns a list of updated records
It fires a query   update  set  =  upsert return after $current where  < condition >

which returns a list of modified rid's

required parameter:  set:
where.


update returns a list of updated records It fires a query update set = upsert return after $current where < condition > which returns a list of modified rid ' s required parameter : set : where .
def update **args
        if args.keys.include?(:set) && args.keys.include?(:where)
          args.merge!( updated: DateTime.now ) if timestamps
          query( **( { kind: :update }.merge args ) ).execute{|r| r[:"$current"].load_rid }
        else
          raise "at least set: and where: are required to perform this operation"
        end
      end
def update ** args if args . keys . include? ( :set ) && args . keys . include? ( :where ) args . merge! ( updated : DateTime . now ) if timestamps query ( ** ( { kind : :update } . merge args ) ) . execute { | r | r [ :" $current " ] . load_rid } else raise "at least set: and where: are required to perform this operation" end end
update returns a list of updated records
It fires a query   update <type> set <property> = <new value > upsert return after $current where  < condition >
update returns a list of updated records It fires a query update <type > set <property > = <new value > upsert return after $current where < condition >
args