mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +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 headers = ctx.request.http?.headers;
|
||||||
|
|
||||||
const info = {
|
const info = {
|
||||||
operation: ctx.request.operationName,
|
operation: ctx.request.operationName ?? headers?.get('x-operation-name'),
|
||||||
clientVersion: headers?.get('x-affine-version'),
|
clientVersion: headers?.get('x-affine-version'),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user