src code

instance method Spah.SpahQL#setAll

Spah.SpahQL#setAll(key, value) → Spah.SpahQL
  • key (String, Number): The key to set on this result
  • value: The value to set for the given key Spah.SpahQL#setAll(dictionary) -> Spah.SpahQL
  • dictionary (Object): A key/value hash containing multiple keys to be set.

Just like #set, only it attempts to set the given key(s) on all items in this set:

db.select(“//foo”).set(”a”, “a-value”) // Attempt to set “a” on all “foo” objects

Just like #set, returns self.