apollo-federation-php icon indicating copy to clipboard operation
apollo-federation-php copied to clipboard

Federation v2 support

Open lethak opened this issue 3 years ago • 4 comments

Hi,

Thanks for your work, I am currently starting to build a new federation project, and looking for v2 support in PHP libs as some of my subgraphs are built upon webonyx.

Do you have any plan to support Federation v2 any time soon ?

https://www.apollographql.com/docs/federation/other-servers/ image

Thanks

lethak avatar May 05 '22 15:05 lethak

@lethak FYI: I work on it. I'm going to finish implementation this week.

https://github.com/Aeliot-Tm/apollo-federation-php/tree/implement_v2

Aeliot-Tm avatar Aug 02 '22 10:08 Aeliot-Tm

@lethak - #26 has been submitted by @Aeliot-Tm and is under review. But maybe you can give it a test run and see how it works for you?

ldiego08 avatar Aug 08 '22 17:08 ldiego08

Awesome, I plan on using/testing this in a few weeks

rsouverain avatar Aug 12 '22 19:08 rsouverain

Federation v2 support can be added incrementally so while the complicated @link can take a bit more validation code things like @tag and @override only need to be defined and be able to be added on types or fields.

I am not a PHP expert, but I have commented as ideally, we wouldn't have to wait for a library to be able to add @tag in a code-first server, but that does not seem possible today. If someone wanted to add support for those directive definitions first, that could help users use new GraphOS features like Contracts, without requiring full Fed 2 support

smyrick avatar Jan 12 '23 23:01 smyrick