Greyson
10/11/2018, 2:25 PMcreateAccount(email: String!, company: String!, accountType: AccountType, assets: AssetCreateManyInput): Account. This would be implemented in the same way as the newUserWithPosts mutation in the Prisma-Client blog post. But for some reason, the generated interface for AssetCreateManyInput looks like this:
export interface AssetCreateManyInput {
create: string;
connect: string;
}
Am I implementing this mutation wrong in my schema.graphql? Should I have a different type besides AssetCreateManyInput? I'm assuming that it would infer that type from the imported generated prisma.graphqlnilan
10/11/2018, 2:26 PMcreate and connect should definitely not be of type string, that's a bug.Greyson
10/11/2018, 2:27 PMresolvers.ts by resolver-codegennilan
10/11/2018, 2:28 PMGreyson
10/11/2018, 2:28 PMnilan
10/11/2018, 2:29 PMGreyson
10/11/2018, 2:29 PMnilan
10/11/2018, 2:31 PMnilan
10/11/2018, 2:31 PMnilan
10/11/2018, 2:31 PMassets: AssetCreateManyInput is certainly a good idea.Greyson
10/11/2018, 2:31 PM