graphql 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d524553e65b5b66f89705c436377523f7d4ac976
4
- data.tar.gz: 8cb44e1162bc0b1aa1be8fb8c78665f5bd8f20e9
3
+ metadata.gz: 2fb4d91df18b66c7d1c4a9c712ee771aedb00655
4
+ data.tar.gz: c787072c016f6995c4742f086cabe05d6d8c931b
5
5
  SHA512:
6
- metadata.gz: 8eb7ed959efa258714dab38486844d32c75a17a4040c89db3478c2b151e4222982ecfcc41a48b82b0a08df1b54aa871a1567bfcdd043ede9abba1b69b31fe3c8
7
- data.tar.gz: 9f753512aec476ebeab407d159c80b75d94aedfb74d8d266910e73c7a88b1934f53bf1f643498eb8bb32798b500c3cfb086a6d9e7f928d993b04a650b5fde0d9
6
+ metadata.gz: 58bee87006d10dfc306e17733770d899a93113c5836e30bba8443330afd2131d49e1a35a24606e20a69762b16450a0b779c7cd5dba03b46d70fa880f7e3b560c
7
+ data.tar.gz: 6369f05cdb38c7d960abab0bd927794f122ac7d82e8c8c422d044ede6d5f099ccd28c532f044ae69a8b89af97306866720996ae1591142e8f9e93bfea89a0b24
@@ -418,6 +418,16 @@ module GraphQL
418
418
  assert_equal false, res.key?("errors")
419
419
  assert_equal [SpecificationSchema::BOGUS_NODE, SpecificationSchema::BOGUS_NODE], log
420
420
  end
421
+
422
+ def test_it_skips_connections
423
+ query_type = GraphQL::ObjectType.define do
424
+ name "Query"
425
+ connection :skipped, types[query_type], resolve: ->(o,a,c) { c.skip }
426
+ end
427
+ schema = GraphQL::Schema.define(query: query_type)
428
+ res = schema.execute("{ skipped { __typename } }")
429
+ assert_equal({"data" => nil}, res)
430
+ end
421
431
  end
422
432
  end
423
433
  end
@@ -27,6 +27,8 @@ module GraphQL
27
27
  else
28
28
  nodes
29
29
  end
30
+ elsif nodes.is_a?(GraphQL::Execution::Execute::Skip)
31
+ nodes
30
32
  else
31
33
  build_connection(nodes, args, parent, ctx)
32
34
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module GraphQL
3
- VERSION = "1.7.1"
3
+ VERSION = "1.7.2"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Mosolgo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-18 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: benchmark-ips