Skip to content

Commit

Permalink
Merge pull request #1144 from jsrodas-pdpaola/fix-namespace-mongodb-p…
Browse files Browse the repository at this point in the history
…ackages

✨ Support laravel-mongodb v4.x namespace
  • Loading branch information
mfn authored Aug 23, 2024
2 parents d47194a + e0615ed commit 561a0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/SelectFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected static function handleFields(

protected static function isMongodbInstance(GraphqlType $parentType): bool
{
$mongoType = 'Jenssegers\Mongodb\Eloquent\Model';
$mongoType = 'MongoDB\Laravel\Eloquent\Model';

return isset($parentType->config['model']) ? app($parentType->config['model']) instanceof $mongoType : false;
}
Expand Down

0 comments on commit 561a0c7

Please sign in to comment.