Skip to content

Commit

Permalink
This seems to actually make things work
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenrys committed Dec 30, 2022
1 parent 8c54451 commit 8ca1768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/generator/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ export class PrismaAppSyncCompiler {

// Return relation kind (`one` or `many`) from Prisma type
private getFieldRelationKind(field: DMMF.Field): 'one' | 'many' {
return field.relationFromFields && field.relationFromFields.length === 1 ? 'one' : 'many'
return !field.isList ? 'one' : 'many'
}

// Get AppSync scalar from Prisma type
Expand Down

0 comments on commit 8ca1768

Please sign in to comment.