mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
fix(server): operation name record (#10914)
This commit is contained in:
@@ -27,7 +27,7 @@ export class GQLLoggerPlugin implements ApolloServerPlugin {
|
||||
const headers = ctx.request.http?.headers;
|
||||
|
||||
const info = {
|
||||
operation: ctx.request.operationName,
|
||||
operation: ctx.request.operationName ?? headers?.get('x-operation-name'),
|
||||
clientVersion: headers?.get('x-affine-version'),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user