Federation for existing schemas: graphql-transform-federation
Sometimes a rebuild to use graphql federation is not possible / desirable. I'm working on a schema transform that allows you to add federation to any existing schema: graphql-transform-federation. The idea is that you add the information required for federation and the transform will ensure the schema conforms to the federation API.
I was wondering whether this approach aligns to with your ideas.
- Are you interested in adding something like this to
buildFederatedSchema?buildFederationSchema(schema, config?: FederationConfig) - What do you think of this approach compared to apollographql/apollo-server#3013 that relies on adding non-standard functions to GraphQL types
Other issues that could be solved with this: https://github.com/prisma-labs/nexus/issues/148 https://github.com/MichalLytek/type-graphql/issues/351
Also looking into a solution for this
Can someone please help out here? I need to federate to an existing schema that does not use federation. It's not even an Apollo Server and a rebuild is out of the question since it's just a big project. Existing libraries are not working at the moment with latest releases of the @apollo/* libs.