Skip to content

Commit 35a740f

Browse files
committed
fix bug and typos in introspection schema
1 parent 3a77d4b commit 35a740f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Introspection/Introspection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function (Schema $schema) {
7676
);
7777

7878
$__Directive = new GraphQLObjectType(
79-
"_Directive",
79+
"__Directive",
8080
"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
8181
function () use (&$__DirectiveLocation, &$__InputValue) {
8282
return [
@@ -203,7 +203,7 @@ function (GraphQLType $type, $args) {
203203
return $args["includeDeprecated"]
204204
? $fields
205205
: array_filter($fields, function (GraphQLTypeField $field) {
206-
return $field->getDeprecationReason() !== null;
206+
return $field->getDeprecationReason() === null;
207207
});
208208
}
209209
return null;

0 commit comments

Comments
 (0)