meteor-graphql
meteor-graphql copied to clipboard
importing .graphql file with interface not working.
My app is very modular and provides an interface
that can be implemented by other types.
Example:
//animal.graphql
enum A{
hunted,
hunter,
}
interface Animal{
_id: String!
name: String!
group: A!
}
//dog.graphql
#import "./animal.graphql";
type Dog implements Animal{
_id: String!
name: String!
ayes: Int!
}
Is it possible to import a .graphql
file where an interface is defined?
Hm, I would think this should work. I'll need to investigate.
A PR with a failing test would be great.
I don't know if I'm doing something wrong, but importing .graphql file in .graphql file is not working.
I get Type "schema" not found in document
. Check this example out.