Skip to content

Commit 62e20de

Browse files
authored
Merge pull request #1 from alancolant/dev
do not record when called by GraphQL::queryAndReturnResult
2 parents dedc8ea + a766930 commit 62e20de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Recorders/GraphqlRecorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function () use (&$record) {
4949
public function record(Carbon $startedAt, array $args, $context, ResolveInfo $info): void
5050
{
5151

52-
if (!in_array($info->parentType, ["Query", "Mutation"])) {
52+
if (!Route::is('graphql*') || !in_array($info->parentType, ["Query", "Mutation"])) {
5353
return;
5454
}
5555

0 commit comments

Comments
 (0)