Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] softDelete rename metafield #237

Open
KonkretneKosteczki opened this issue Sep 19, 2022 · 0 comments
Open

[Feature Request] softDelete rename metafield #237

KonkretneKosteczki opened this issue Sep 19, 2022 · 0 comments

Comments

@KonkretneKosteczki
Copy link

Would it be possible to change the field used for soft deletion of the objects? I have a database schema where some objects already have the deleted field as such I cannot use the softDelete option without changing that.

It is possible to change the metafields like created_by, createdate etc. I don't see why it should not be possible to the same for the deleted field. It could be set by using the softDelete configuration option or the renameMetaFields config option

  renameMetaFields: {
    deleted: 'my_deleted`, // default 'deleted'
    created_at: 'my_created_at', // default: 'createdate'
    created_by: 'my_created_by', // default: 'createdby'
    updated_at: 'my_updated_at', // default: 'lastupdate'
    updated_by: 'my_updated_by', // default: 'updatedby'
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant