-
I'm trying to access the export function MyFieldResolver(...args: Parameters<typeof FieldResolver>): MethodDecorator {
const field = FieldResolver(...args);
const measurePerf = MeasurePerformance();
// Combine the decorators into one decorator (both are void methods).
return (target, property, descriptor) => {
measurePerf(target, property, descriptor);
field(target, property, descriptor);
};
} Thank you for any tips/insight you can provide! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There's only one way to check that!
|
Beta Was this translation helpful? Give feedback.
-
So we actually figured out why the context was an empty object. The field resolver was being executed via the result of a subscription. Since it's not tied to one single request the context was empty, which is the correct behavior. We are updating our code to handle these scenarios. Thanks for your help, and for the awesome library! |
Beta Was this translation helpful? Give feedback.
So we actually figured out why the context was an empty object. The field resolver was being executed via the result of a subscription. Since it's not tied to one single request the context was empty, which is the correct behavior. We are updating our code to handle these scenarios.
Thanks for your help, and for the awesome library!