Hello, I have GraphQL syntax question, couldn't fi...
# prisma-whats-new
o
Hello, I have GraphQL syntax question, couldn't find answer myself. I saw many examples of extending Query, used myself, but is there a way to extend a data type and name it to use as referense? Something like
Copy code
type BaseType {}
MyType extend type BaeType {}
OtherType {
property:MyType!
}
EDIT: The answer is interfaces, create an interface for base type and implement it with type. Interface can be used in property definition.