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

Add beforeLoad callback #38

Open
nezuo opened this issue Feb 8, 2024 · 0 comments
Open

Add beforeLoad callback #38

nezuo opened this issue Feb 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nezuo
Copy link
Owner

nezuo commented Feb 8, 2024

It should be possible to modify the data of a document before it loads. For example, you could implement reconciliation (think ProfileService:Reconcile) or decompression of the document.

Some open questions:

  • Should this callback run before or after migration? Should there be a callback for both?
  • Should this callback be global or per collection?

I'd also like to add a reconciliation example to the docs after this feature is added.

@nezuo nezuo added the enhancement New feature or request label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant