graphql 2.0.19 → 2.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/execution/interpreter/runtime.rb +7 -11
- data/lib/graphql/language/nodes.rb +24 -6
- data/lib/graphql/language/parser.rb +1 -1
- data/lib/graphql/language/parser.y +1 -1
- data/lib/graphql/schema/field.rb +2 -0
- data/lib/graphql/schema/member/base_dsl_methods.rb +13 -11
- data/lib/graphql/schema/member/has_ast_node.rb +12 -0
- data/lib/graphql/schema/member/has_directives.rb +11 -4
- data/lib/graphql/schema/member/has_fields.rb +1 -0
- data/lib/graphql/schema/member/relay_shortcuts.rb +19 -0
- data/lib/graphql/schema/member/type_system_helpers.rb +1 -1
- data/lib/graphql/schema.rb +1 -5
- data/lib/graphql/tracing/appsignal_trace.rb +7 -2
- data/lib/graphql/types/relay/connection_behaviors.rb +24 -2
- data/lib/graphql/types/relay/edge_behaviors.rb +16 -2
- data/lib/graphql/types/relay/node_behaviors.rb +7 -1
- data/lib/graphql/types/relay/page_info_behaviors.rb +7 -2
- data/lib/graphql/types/relay.rb +0 -1
- data/lib/graphql/version.rb +1 -1
- data/lib/graphql.rb +7 -7
- metadata +2 -4
- data/lib/graphql/language/lexer.ri +0 -744
- data/lib/graphql/types/relay/default_relay.rb +0 -27
@@ -1,27 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module GraphQL
|
4
|
-
module Types
|
5
|
-
module Relay
|
6
|
-
module DefaultRelay
|
7
|
-
def self.extended(child_class)
|
8
|
-
child_class.default_relay(true)
|
9
|
-
end
|
10
|
-
|
11
|
-
def default_relay(new_value)
|
12
|
-
@default_relay = new_value
|
13
|
-
end
|
14
|
-
|
15
|
-
def default_relay?
|
16
|
-
if defined?(@default_relay)
|
17
|
-
@default_relay
|
18
|
-
elsif self.is_a?(Class)
|
19
|
-
superclass.respond_to?(:default_relay?) && superclass.default_relay?
|
20
|
-
else
|
21
|
-
false
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|