spec/graphql/query/context_spec.rb in graphql-0.18.4 vs spec/graphql/query/context_spec.rb in graphql-0.18.5
- old
+ new
@@ -14,10 +14,10 @@
end
field :queryName, types.String do
resolve -> (target, args, ctx) { ctx.query.class.name }
end
}}
- let(:schema) { GraphQL::Schema.new(query: query_type, mutation: nil)}
+ let(:schema) { GraphQL::Schema.define(query: query_type, mutation: nil)}
let(:result) { schema.execute(query_string, context: {"some_key" => "some value"})}
describe "access to passed-in values" do
let(:query_string) { %|
query getCtx { context(key: "some_key") }