diff --git a/packages/generator/src/compiler.ts b/packages/generator/src/compiler.ts index 449e9a4..7a8a252 100644 --- a/packages/generator/src/compiler.ts +++ b/packages/generator/src/compiler.ts @@ -684,6 +684,7 @@ export class PrismaAppSyncCompiler { const defaultValue: any = searchField?.default || null return ( defaultValue?.name === 'autoincrement' + || defaultValue?.name === 'uuid' || searchField.isUpdatedAt || ['updatedAt', 'createdAt'].includes(searchField.name) )