File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
lib/graphql/relay/connection Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,13 @@ if Code.ensure_loaded?(Ecto) do
19
19
limit = Enum . min ( [ first , last , connection_count ( repo , query ) ] )
20
20
21
21
query = if a_after do
22
- frag = [ { where_property , [ >: a_after ] } ]
23
- query |> where ( fragment ( ^ frag ) )
22
+ query |> where ( [ a ] , field ( a , ^ where_property ) > ^ a_after )
24
23
else
25
24
query
26
25
end
27
26
28
27
query = if before do
29
- frag = [ { where_property , [ <: before ] } ]
30
- query |> where ( fragment ( ^ frag ) )
28
+ query |> where ( [ a ] , field ( a , ^ where_property ) < ^ before )
31
29
else
32
30
query
33
31
end
Original file line number Diff line number Diff line change 1
1
defmodule GraphQL.Relay.Mixfile do
2
2
use Mix.Project
3
3
4
- @ version "0.4.0 "
4
+ @ version "0.4.1 "
5
5
@ description "Relay helpers for GraphQL Elixir"
6
6
@ repo_url "https://github.com/graphql-elixir/graphql_relay"
7
7
You can’t perform that action at this time.
0 commit comments