From a7669308aaaa0fcc8d8ee67c23580c2918d2114c Mon Sep 17 00:00:00 2001 From: Colant Alan Date: Fri, 22 Mar 2024 18:52:43 +0100 Subject: [PATCH] do not record when called by GraphQL::queryAndReturnResult --- src/Recorders/GraphqlRecorder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Recorders/GraphqlRecorder.php b/src/Recorders/GraphqlRecorder.php index 8cc6eaf..e05ee90 100644 --- a/src/Recorders/GraphqlRecorder.php +++ b/src/Recorders/GraphqlRecorder.php @@ -49,7 +49,7 @@ function () use (&$record) { public function record(Carbon $startedAt, array $args, $context, ResolveInfo $info): void { - if (!in_array($info->parentType, ["Query", "Mutation"])) { + if (!Route::is('graphql*') || !in_array($info->parentType, ["Query", "Mutation"])) { return; }