question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Custom name for deleted field

See original GitHub issue

I’d like to be able to set a custom name for the deleted field, for instance, to follow the convention of using a question for boolean fields, i.e. isDeleted.

Ideally, I could use a configuration option like so:

MySchema.plugin(mongoose_delete, { deletedFieldName: 'isDeleted' });

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
T-vKcommented, Aug 27, 2021

A PR that would add an option to specify custom values for deletedAt etc.

0reactions
dsanelcommented, Aug 27, 2021

@T-vK, which PR you are referring to?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Deleted Fields in Lightning Experience
From the Object Manager page, click the name of the custom object. Click Fields & Relationships. To see a list of soft deleted...
Read more >
I can not able to create deleted fields again with same api ...
There is link under custom fields named "Deleted Fields (X)". you need to clink on this link and then erase the field to...
Read more >
Edit or delete a custom field
Under FIELDS, select Custom fields. Find the custom field you want to edit and select More ( ) > Edit details to update...
Read more >
Deleted Custom Fields
To restore a deleted custom field, click on the hyperlinked name of the custom field. Then scroll to the bottom of the page...
Read more >
How to Restore Deleted Salesforce Fields
From Setup, go to Object Manager and [Object Name], followed by Fields & Relationships. Then click on Deleted Field at the top of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found