graphql 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphql/query/context.rb +3 -1
- data/lib/graphql/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe7641dffd14c00880e603f8184ad21a9611d83c
|
4
|
+
data.tar.gz: 321e498e40d82ef2e693fc5ed75873af5b252620
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abc31a8400a6552e47c9d0c1f91f4808e677a7d7686c0081953c2120c462b5293c5b9502e3e0dcf7d1795d1f526645f81b74ea9b9c124c4f0ad665abbbaf43a3
|
7
|
+
data.tar.gz: aff0d44780415b85bc2fa2a4652a26698e253e897e671135d41ff2036a712d2a486db63696ef56d8370aa2c63d7cd8ab76ec00dd474a9f8165e8da3f5e94c8c7
|
@@ -4,6 +4,8 @@ module GraphQL
|
|
4
4
|
# It delegates `[]` to the hash that's passed to `GraphQL::Query#initialize`.
|
5
5
|
class Context
|
6
6
|
attr_reader :execution_strategy
|
7
|
+
# `strategy` is required by GraphQL::Batch
|
8
|
+
alias_method :strategy, :execution_strategy
|
7
9
|
|
8
10
|
def execution_strategy=(new_strategy)
|
9
11
|
# GraphQL::Batch re-assigns this value but it was previously not used
|
@@ -72,7 +74,7 @@ module GraphQL
|
|
72
74
|
@irep_node = irep_node
|
73
75
|
end
|
74
76
|
|
75
|
-
def_delegators :@context, :[], :[]=, :spawn, :query, :schema, :warden, :errors, :execution_strategy
|
77
|
+
def_delegators :@context, :[], :[]=, :spawn, :query, :schema, :warden, :errors, :execution_strategy, :strategy
|
76
78
|
|
77
79
|
# @return [GraphQL::Language::Nodes::Field] The AST node for the currently-executing field
|
78
80
|
def ast_node
|
data/lib/graphql/version.rb
CHANGED