Skip to content

Commit

Permalink
fix model being added as schema (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko authored Jul 31, 2024
1 parent 5e0d020 commit e116aeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Support/TypeToSchemaExtensions/ModelToSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class ModelToSchema extends TypeToSchemaExtension
public function shouldHandle(Type $type)
{
return $type instanceof ObjectType
&& $type->isInstanceOf(Model::class);
&& $type->isInstanceOf(Model::class)
&& $type->name !== Model::class;
}

/**
Expand Down

0 comments on commit e116aeb

Please sign in to comment.