Tag: nexus-js
-
use nexus-prisma without prisma client
0 I am planning on using prisma for building the database and migrations, I am not going to use prisma client as there are some limitations I am hitting since prisma does not use native joins. I also want to use nexus prisma to auto generate types for my graphql api. However, I see that…
-
NexusJS Error: TypeError: Class constructor GraphQLNonNull cannot be invoked without ‘new’
1 I was trying to learn nexus, but got a problems. I created index.ts file with this code: const User = objectType({ name: ‘User’, definition(t) { t.id(‘id’) t.string(‘name’) } }) export const schema = makeSchema({ types: [User], outputs: { typegen: __dirname + ‘/generated/nexus.generated.ts’, schema: __dirname + ‘schema.graphql’ } }) Then I tryied to run script:…