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

When initially entering data without object id #3044

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

silverflow
Copy link

@silverflow silverflow commented Feb 8, 2021

Description

Add the method you use to enter data initially without object id.
When using the write method, you can put the document_id and path parameter values in an empty string value. like ''

Motivation and Context

While loading data into mongodb, it was known that the write method of luigi's mongodb module could only be used if object_id existed.
But I just wanted to insert the dictionary data as it is.
The existing write method is rather more appropriate with the name 'update'. Thus, the write method was modified to update method and replaced the write with insert.

Have you tested this? If so, how?

I tested it and it works fine. However, when using the write method, empty values must be added to the document_id and path parameters.

Add the method you use to enter data initially without object id.
When using the write method, you can put the document_id and path parameter values in an empty string value. like ''
@stale
Copy link

stale bot commented Jan 9, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If closed, you may revisit when your time allows and reopen! Thank you for your contributions.

@stale stale bot added the wontfix label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant