CCBCodeMonkey
12/30/2018, 5:46 AMextend type
in their apollo server schema to extend prisma types? It doesn't seem to work within the schema.graphql
as per this issue: https://github.com/prisma/graphql-import/issues/42
I am doing this hackity hack as workaround:
const importedTypeDefs = importSchema(path.join(__dirname, '/schema.graphql'));
// stupidly type extensions can only go in here right now..
const typeDefs = gql`
${importedTypeDefs}
extend type ExtendedType {
extendedProp: String
}
`;