@override limitations on Apollo Federation 2.7

hi all! I’m currently working on a Apollo federated supergraph with many subgraphs.

I need to build a subgraph that @overrides a bunch of a legacy subgraph queries and mutations.

I’m looking for some additional control on top of this @override directive, where I can pass in a flag for a single client test via custom header or an input. Can anyone help out in this regard?

Hello :waving_hand:

You should be able to achieve this with progressive @overrides and a custom Rhai script / coprocessor. In your custom script you would then evaluate the header and calculate the appropriate value for the override label (true/false).

Thanks,
Derek

1 Like

thank you so much for the quick reply! this looks exactly like what I need and I have a prototype ready for testing soon. pinging back here if it works out OK!

cheers