sheerun/graphqlviz

Fails on federated schema types

Closed this issue · 2 comments

Our schema relies on some federated types so we have something like this declared in our schema:

extend type User @key(fields: "id") {
  id: ID! @external
}

This is failing in graphqlviz with:

Unknown type "User".
Cannot extend type "User" because it is not defined.
Unknown directive "key".
Unknown directive "external".

could you try to fix it?

I figured out the issue. I was exporting my schema prior to the output from buildFederatedSchema so it did not have the federation directive specs in it.