Fails on federated schema types
Closed this issue · 2 comments
robross0606 commented
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".
sheerun commented
could you try to fix it?
robross0606 commented
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.