rein
04/14/2020, 9:08 AM@prisma/client ) as rootTypings for nexus@next? Right now, Nexus doesn't handle interfaces and subtypes without having an explicit rootType present.nikolasburk
weakky
04/14/2020, 11:34 AMweakky
04/14/2020, 11:34 AMrein
04/14/2020, 11:35 AMweakky
04/14/2020, 11:35 AMrein
04/14/2020, 11:36 AMweakky
04/14/2020, 11:37 AMrein
04/14/2020, 11:38 AMweakky
04/14/2020, 11:43 AMweakky
04/14/2020, 11:47 AM// types.ts
import * as Prisma from '@prisma/client'
export type YourType = Prisma.YourType
//schema.ts
import { schema } from 'nexus'
schema.objectType({
name: 'something',
rootTyping: 'YourType'
})weakky
04/14/2020, 11:47 AMtypes.tsweakky
04/14/2020, 11:48 AMrein
04/14/2020, 11:50 AMweakky
04/14/2020, 11:51 AMweakky
04/14/2020, 11:52 AMrein
04/14/2020, 11:52 AMweakky
04/14/2020, 11:53 AMrein
04/14/2020, 11:53 AMjasonkuhrt
jasonkuhrt
weakky
04/14/2020, 12:23 PM