Based on the gqlgen lifecycle example presented in https://github.com/99designs/gqlgen/blob/ddd825ef62f1fa7cbc0824c1696f72a3c67d78e0/graphql/handler.go#L45, multiple responses can be sent for the same subscription operation, which means
|
gh.AroundResponses(GqlLoggingMiddleware) |
should probably use
AroundOperations instead of
AroundResponses to avoid multiple log lines for the same request.
Based on the gqlgen lifecycle example presented in https://github.com/99designs/gqlgen/blob/ddd825ef62f1fa7cbc0824c1696f72a3c67d78e0/graphql/handler.go#L45, multiple responses can be sent for the same subscription operation, which means
graphql/server/server.go
Line 115 in 76180de
AroundOperationsinstead ofAroundResponsesto avoid multiple log lines for the same request.