Skip to content

Commit

Permalink
Merge pull request #2 from esjee/postgresql
Browse files Browse the repository at this point in the history
Provide order argument as string
  • Loading branch information
Willianvdv committed Jun 28, 2017
2 parents 99991e6 + a0715a2 commit 7df3200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/star_wars/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,8 @@ def edge_nodes
resolve ->(obj, args, ctx) {
Base
.having('id in (select max(id) from bases group by faction_id)')
.order(faction_id: :desc)
.group(:id)
.order('faction_id desc')
}
end

Expand Down

0 comments on commit 7df3200

Please sign in to comment.