feat: hasMany property for text fields (#4605)

* fix for supporting hasMany property in text field

* Updated docs

* handle text case types for schema and graphql schema

* fix unit test for required failing

* add unit test for has many text field

* add end to end test for has many on text field creation

* support has many feature for text field on postgres

---------

Co-authored-by: Chris Heinz <chrisi.heinz@web.de>
This commit is contained in:
Gokulsck
2024-01-04 14:45:00 -05:00
committed by GitHub
parent 5d15955f83
commit f43cf185d4
29 changed files with 638 additions and 66 deletions

View File

@@ -18,6 +18,7 @@ type Args = {
data: unknown
field: ArrayField
locale?: string
texts: Record<string, unknown>[]
numbers: Record<string, unknown>[]
path: string
relationships: Record<string, unknown>[]
@@ -36,6 +37,7 @@ export const transformArray = ({
data,
field,
locale,
texts,
numbers,
path,
relationships,
@@ -86,6 +88,7 @@ export const transformArray = ({
fieldPrefix: '',
fields: field.fields,
locales: newRow.locales,
texts,
numbers,
parentTableName: arrayTableName,
path: `${path || ''}${field.name}.${i}.`,