jblevins
03/14/2019, 4:49 PMHarshit
03/14/2019, 4:49 PMtgriesser
03/14/2019, 4:58 PMjblevins
03/14/2019, 5:09 PMjblevins
03/14/2019, 5:10 PMtgriesser
03/14/2019, 5:40 PMmutation {
createUser(data: {username: "Something", password: "Something Else"}) {
id
}
}
and changed the resolve of createUser
to:
resolve(root, args, ctx) {
const { data } = args;
console.log(args);
return { id: 1 };
}
and I see { data: { username: 'Something', password: 'Something Else' } }
in the console, so the input types seem to be working fine there. Maybe it’s something in the translation to prisma’s end? @weakky any idas here?weakky
03/14/2019, 5:55 PMjblevins
03/14/2019, 6:52 PMjblevins
03/14/2019, 6:53 PMweakky
03/14/2019, 6:57 PMnexus-prisma
. Does your User
type in your datamodel looks like this?
type User {
id: ID! @unique
username: String! @unique
}
weakky
03/14/2019, 6:58 PMjblevins
03/14/2019, 7:02 PMweakky
03/14/2019, 7:03 PMprisma-client
?jblevins
03/14/2019, 7:05 PMjblevins
03/14/2019, 7:06 PMjblevins
03/14/2019, 8:55 PMweakky
03/14/2019, 9:13 PMnexus-prisma
side, you must have an issue with your prisma-client not being properly generatedweakky
03/14/2019, 9:13 PMweakky
03/14/2019, 9:13 PMprisma-client
folder and run prisma generate
againjblevins
03/14/2019, 10:31 PMjblevins
03/14/2019, 11:40 PMjblevins
03/14/2019, 11:40 PMjblevins
03/14/2019, 11:41 PMjblevins
03/14/2019, 11:44 PMjblevins
03/15/2019, 12:11 AMjblevins
03/15/2019, 12:22 AMjblevins
03/15/2019, 1:09 AMjblevins
03/15/2019, 2:14 AM