#! /bin/bash

./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end end"
./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end; error 'abcd' end"

#! /bin/bash

./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end end"
./cosy.lua server:filter "return function (yield, store) for i = 1, 10 do yield (i, i) end; error 'abcd' end"
./cosy.lua server:filter 'return function (yield, store)
    for key, user in store / "data" / ".*" do
      yield { key = key, name = user.username, }
    end
  end'
./cosy.lua server:filter 'return function (yield, store)
    for key, user in store / "data" / "a" do
      yield { key = key, name = user.username, }
    end
  end'

Add small examples for iteration on users.
Add small examples for iteration on users.
