spec/graphql/relay/relation_connection_spec.rb in graphql-relay-0.2.0 vs spec/graphql/relay/relation_connection_spec.rb in graphql-relay-0.3.0

- old
+ new

@@ -13,18 +13,22 @@ describe "results" do let(:query_string) {%| query getShips($first: Int, $after: String, $last: Int, $before: String, $order: String){ empire { bases(first: $first, after: $after, last: $last, before: $before, order: $order) { - edges { - cursor - node { - name - } - } + ... basesConnection pageInfo { hasNextPage } + } + } + } + + fragment basesConnection on BaseConnection { + edges { + cursor + node { + name } } } |} it 'limits the result' do