Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69a14fa

Browse files
committed
fix(schema): mark ZodMap as json field
1 parent a350dc5 commit 69a14fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/collection.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { ZodFieldType } from './zod'
88
import { getUnderlyingType, ZodToSqlFieldTypes, z, getUnderlyingTypeName } from './zod'
99
import { logger } from './dev'
1010

11-
const JSON_FIELDS_TYPES = ['ZodObject', 'ZodArray', 'ZodRecord', 'ZodIntersection', 'ZodUnion', 'ZodAny']
11+
const JSON_FIELDS_TYPES = ['ZodObject', 'ZodArray', 'ZodRecord', 'ZodIntersection', 'ZodUnion', 'ZodAny', 'ZodMap']
1212

1313
export function getTableName(name: string) {
1414
return `_content_${name}`

0 commit comments

Comments
 (0)