You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The expected behavior is that extension data does not get wiped. Or if it is the intended behavior, then I think it makes sense if there's an extension hook that gets called with response data, so that an extension can pluck the data it needs, e.g. __queryPlanExperimental and then format that data with the format method.
The text was updated successfully, but these errors were encountered:
Can you try again with the latest version of Apollo Server, 2.14.1? The tracing extension was recently ported to the plugin API in Apollo Server 2.14.0 via #3991.
Spent some time trying to figure out why
response.extensions.__queryPlanExperimental
was getting removed from the response after it was set.Basically, when
config.tracing
is set totrue
, it includes theTracingExtension
which has aformat
method and which will override whatever was set onresponse.extensions
.The expected behavior is that extension data does not get wiped. Or if it is the intended behavior, then I think it makes sense if there's an extension hook that gets called with
response
data, so that an extension can pluck the data it needs, e.g.__queryPlanExperimental
and then format that data with theformat
method.The text was updated successfully, but these errors were encountered: