I’ve two part question, I tried searching around, no avail.
Now, say I already have a federated graph, I want to introduce a new directive:
@authorize which basically ensures a user is logged in. This obviously isn’t available for frontend to call.
But unfortunately my graphql server exports this on the _sdl of schema when I do federation.
I was able to remove only that directive, BUT I couldn’t get rid of actual usage of
@authorize, which means the SDL is actually invalid (directive not found) if tried to parse.
If I can solve that issue it’s done, but in case I can’t, I want to be able to add directive, but last time I tried, apollo graphql said if you have directive
@authorize in 1 subgraph, you will need that in all subgraph.
Then how do you actually deploy a new service which introduces a directive then?