Sascha
08/02/2020, 1:46 PMschema.objectType({
name: 'Item',
definition(t) {
t.model.id()
t.model.name()
t.model('ItemInstance').data()
}
})
Unfortunately the explicit selection of ItemInstance doesn't work in this case, as model is not a function as soon as the name of the objectType matches a Prisma type.Ryan
08/03/2020, 6:48 AMItemInstance? If so, then it should work properly.
schema.objectType({
name: 'ItemInstance',
definition(t) {
t.model.data()
}
})
This should be defined in NexusRyan
08/03/2020, 6:49 AMSascha
08/03/2020, 7:25 AMSascha
08/03/2020, 7:27 AMSascha
08/03/2020, 7:27 AM