( typeString: FieldScalar | string, field: GraphQLField<unknown, unknown>, isForeignKey: boolean )
| 355 | } |
| 356 | |
| 357 | function packEntityField( |
| 358 | typeString: FieldScalar | string, |
| 359 | field: GraphQLField<unknown, unknown>, |
| 360 | isForeignKey: boolean |
| 361 | ): GraphQLEntityField { |
| 362 | return { |
| 363 | name: isForeignKey ? `${field.name}Id` : field.name, |
| 364 | type: typeString, |
| 365 | description: field.description ?? undefined, |
| 366 | isArray: isListType(isNonNullType(field.type) ? getNullableType(field.type) : field.type), |
| 367 | nullable: !isNonNullType(field.type), |
| 368 | isEnum: false, |
| 369 | }; |
| 370 | } |
| 371 | |
| 372 | function packJSONField( |
| 373 | typeString: string, |
no test coverage detected