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

feat: MongoDB Node - added new option to specify fields to parse as ObjectID #4520

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dejecj
Copy link

@dejecj dejecj commented Nov 4, 2022

This adds a new option on the update, insert, findAndUpdate, and findAndReplace operations. The new option allows you to specify a list of fields from the input that should be parsed as ObjectIDs before executing the query. It works identically to the current "Date Fields" option.

@CLAassistant
Copy link

CLAassistant commented Nov 4, 2022

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added community Authored by a community member node/improvement New feature or request labels Nov 4, 2022
@carlos-dc
Copy link

Any feedback on whether this can get pushed through or not? Would really help my existing flows to have this feature in the official release.

@dejecj
Copy link
Author

dejecj commented Mar 7, 2023

Bump

@ArunBalajiR
Copy link

Any idea to add this feature, I really need this now. Or is there any other workaround ?

@dejecj
Copy link
Author

dejecj commented Mar 25, 2023

Any idea to add this feature, I really need this now. Or is there any other workaround ?

Only workaround I found is to use the MongoDB Atlas Data API. It supports extended json so you can use the $oid syntax. Only thing is that you can't use the mongo node you have to use the http node and manage credentials separately. I really wish they would merge this though it's such a small change based on a preexisting feature but still the PR has been sitting here for months.

@pedrolucasoliva
Copy link

Any progress? I need this :(

@ArunBalajiR
Copy link

Any progress? I need this :(

What I did was, I've self hosted the n8n and installed the npm module for mongodb just to use that ObjectID.

@lehno
Copy link

lehno commented Mar 8, 2024

2 years and still we cant use ObjectId, saw many places saying to use $exp, but I only get MongoServerError: Feature not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Authored by a community member node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants