feat: add object/field create/update resolvers (#1963)

* feat: add object/field create/update resolvers

* fix tests
This commit is contained in:
Weiko
2023-10-11 12:03:13 +02:00
committed by GitHub
parent 6a3002ddf9
commit f97228bfac
32 changed files with 657 additions and 429 deletions

View File

@ -156,6 +156,11 @@ export class SchemaBuilderService {
const mutationFields: any = {};
for (const objectDefinition of objectMetadata) {
if (objectDefinition.fields.length === 0) {
// A graphql type must define one or more fields
continue;
}
const tableName = objectDefinition?.targetTableName ?? '';
const ObjectType = generateObjectType(
objectDefinition.displayName,