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

Enable deepsync in executors or create a new deepsync executor #260

Open
Fen747 opened this issue Apr 7, 2022 · 1 comment · May be fixed by #281
Open

Enable deepsync in executors or create a new deepsync executor #260

Fen747 opened this issue Apr 7, 2022 · 1 comment · May be fixed by #281
Assignees
Labels
enhancement New feature or request

Comments

@Fen747
Copy link
Collaborator

Fen747 commented Apr 7, 2022

For example, we could add a new option to allow using deepSync such as :

    // will use deepSync to create the document and it's related items
    X.ToInsertOne(MyCollection, { deepSync: true })
    X.ToUpdateOneById(MyCollection, ..., { deepSync: true })

Or we could create a new dedicated executor :

    X.ToInsertOneSync(MyCollection)
    X.ToUpdateOneByIdSync(MyCollection)
@Fen747 Fen747 added the enhancement New feature or request label Apr 7, 2022
@theodorDiaconu
Copy link
Contributor

theodorDiaconu commented Apr 19, 2022

X.ToInsertOne(MyCollection, { deepSync: true })
X.ToUpdateOneById(MyCollection, ..., { deepSync: true })
Is the way to go.

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

Successfully merging a pull request may close this issue.

3 participants