Sha256: e5d59cdff8e2b53108e1b8d6c7e3ea431b2b0e6a9359dcff3334e80b1dd1e231
Contents?: true
Size: 1.05 KB
Versions: 17
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe GraphQL::Introspection::DirectiveType do let(:query_string) {%| query getDirectives { __schema { directives { name, args { name, type { name, ofType { name } } }, onField, onFragment, onOperation } } } |} let(:result) { DummySchema.execute(query_string) } it 'shows directive info ' do expected = { "data" => { "__schema" => { "directives" => [ { "name" => "skip", "args" => [ {"name"=>"if", "type"=>{"name"=>"Non-Null", "ofType"=>{"name"=>"Boolean"}}} ], "onField" => true, "onFragment" => true, "onOperation" => false, }, { "name" => "include", "args" => [ {"name"=>"if", "type"=>{"name"=>"Non-Null", "ofType"=>{"name"=>"Boolean"}}} ], "onField" => true, "onFragment" => true, "onOperation" => false, }, ] } }} assert_equal(expected, result) end end
Version data entries
17 entries across 17 versions & 1 rubygems