feat: add object/field create/update resolvers (#1963)
* feat: add object/field create/update resolvers * fix tests
This commit is contained in:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user