Skip to content

add field hard deletion and update test for field deletion#79

Open
mattezra wants to merge 2 commits into
masterfrom
feat/#70-add-hard-delete-fields
Open

add field hard deletion and update test for field deletion#79
mattezra wants to merge 2 commits into
masterfrom
feat/#70-add-hard-delete-fields

Conversation

@mattezra
Copy link
Copy Markdown
Contributor

Closes #70

This PR adds support for field hard deletion as this is already supported (see docs) using the hardDelete query param.

This PR also adds back field deletion in the test suite as the field will now be hard deleted in the database, to prevent the Row size too large database error encountered when a lot of fields are created for a model (a new field creates a new column in the model record).

@mattezra mattezra requested a review from shrunyan January 28, 2026 13:27
@mattezra mattezra self-assigned this Jan 28, 2026
@mattezra mattezra added enhancement New feature or request ready labels Jan 28, 2026
}

async deleteModelField(modelZUID, fieldZUID) {
async deleteModelField(modelZUID, fieldZUID, hardDelete = "false") {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While ultimately this value will end up as a string in the URL. The sdk interface of it being a string is awkward.

It would not be normal to program this;

deleteModelField("6-000-0000", "12-000-0000", "true")

Where as this would be;

deleteModelField("6-000-0000", "12-000-0000", true)

The consuming developer should be able to author a boolean value. You need to handle that ending up as the correct value going into the URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ready

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for hard-deleting fields in node-sdk

2 participants