Interface AlterTypeOperations<Schema>

The possible alterations that may be performed on the UDT. Only one out of the two may be used at a time.

Example

// Add new fields
{
add: {
fields: {
newField: 'text',
anotherField: { type: 'int' },
},
},
}

// Rename existing fields
{
rename: {
fields: {
oldName: 'newName',
street: 'streetAddress',
},
},
}
interface AlterTypeOperations<Schema> {
    add?: AddFieldOperation;
    rename?: RenameFieldOperation<Schema>;
}

Type Parameters

Properties

Properties

Add new fields to the UDT.

Rename existing fields in the UDT.