test/queries/user/fetch_in_group.rb in inquery-0.1.0 vs test/queries/user/fetch_in_group.rb in inquery-1.0.0
- old
+ new
@@ -1,10 +1,10 @@
module Queries
module User
class FetchInGroup < Inquery::Query
- schema(
- group_id: :integer
- )
+ schema do
+ req :group_id, :integer
+ end
def call
::Group.find(osparams.group_id).users
end
end