Nelson Pecora
08/19/2019, 8:37 PMinput RelatedItemInput {
create: ContentCreateInput
connect: ContentWhereUniqueInput # auto-generated input type
delete: Boolean
}
input ContentCreateInput {
relatedItem: RelatedItemInput
}
in nexus-prisma? It doesn’t seem to want me to create input types that are in any way cyclicalNelson Pecora
08/19/2019, 8:52 PMinputObjectType({
name: 'HeaderImageInput',
definition: (t) => {
t.field('create', {type: 'ContentCreateInput'});
t.field('connect', {type: 'ContentWhereUniqueInput'});
t.boolean('delete');
}
})
I get a really nasty error message in nexus-prisma:
TypeError: Cannot read property 'name' of undefined
at SchemaBuilder.addType (/Users/nelsonpecora/www/alexandria/node_modules/@prisma/nexus/dist/builder.js:118:54)