hi folks. what’s the equivalent to ``` input Relat...
# orm-help
n
hi folks. what’s the equivalent to
Copy code
input 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 cyclical
if I write that as
Copy code
inputObjectType({
  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:
Copy code
TypeError: Cannot read property 'name' of undefined
    at SchemaBuilder.addType (/Users/nelsonpecora/www/alexandria/node_modules/@prisma/nexus/dist/builder.js:118:54)