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

Provide MongoDb bulk write single operation and sink #515

Open
paualarco opened this issue Jan 2, 2021 · 0 comments
Open

Provide MongoDb bulk write single operation and sink #515

paualarco opened this issue Jan 2, 2021 · 0 comments
Labels
good first issue Good for newcomers mongodb

Comments

@paualarco
Copy link
Member

paualarco commented Jan 2, 2021

Additionally, it would be good if we could reuse the ReplaceOneModel and UpdateOneModel from the sink signatures,
where currently they are expecting a Tuple2[Bson, Bson] for the updates, and a Tuple2[Bson, Document], we could create a case class respectively to wrap those values in a more idiomatic way.
i.e

case class ReplaceOne[Doc](filter: Bson, replacement: Doc) {
 def toJava(options: ReplaceOptions) = ???
}
@paualarco paualarco added good first issue Good for newcomers mongodb labels Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers mongodb
Projects
None yet
Development

No branches or pull requests

1 participant