KissesJun

please view this so that get the best browse experience: ( gwills163.github.io )โ˜บ๏ธ

View the Project on GitHub

Personal Introduction ๐ŸŒŸ

Welcome ๐Ÿ‘‹

Hello everyone! Iโ€™m Jordan Lee, an adventurous dreamer with a boundless curiosity about the world. ๐ŸŒ While I canโ€™t share detailed personal information at the moment, Iโ€™m excited to share some of my fantastical experiences and interests with you. ๐Ÿš€

My Story ๐Ÿ“–

I was born on the mysterious Alpha Planet ๐ŸŒŒ, and from a young age, I was fascinated by Earthโ€™s culture and technology. After many years of interstellar travel ๐ŸŒ , I finally arrived on Earth to explore all the astonishing things this planet has to offer. ๐ŸŒŸ

Areas of Expertise ๐Ÿ’ซ

During my interstellar travels, I have mastered many unique skills, including but not limited to:

Hobbies and Interests ๐ŸŽจ

I am passionate about many things, and here are some of the activities I enjoy:

Dreams and Goals ๐ŸŒ 

My dreams are:

Contact Me ๐Ÿ“ฌ


Thank you for your interest! I hope we can meet somewhere in the universe and share more exciting adventure stories. ๐ŸŒŸ๐Ÿš€


Extra Fun! ๐ŸŒŸ

Hereโ€™s a little extra touch of fun with some emoticons:

I hope these bring a smile to your face! ๐Ÿ˜Š

Example

Update many documents

In the same way I was able to update one document with updateOne(), I can update multiple documents with updateMany().

filter = eq("student_id", 10001);
updateResult = gradesCollection.updateMany(filter, updateOperation);
System.out.println("\n=> Updating all the documents with {\"student_id\":10001}.");
System.out.println(updateResult);

In this example, Iโ€™m using the same updateOperation as earlier, so Iโ€™m creating a new one element array comments in these 10 documents.

Here is the output:

=> Updating all the documents with {"student_id":10001}.

AcknowledgedUpdateResult{matchedCount=10, modifiedCount=10, upsertedId=null}

The findOneAndUpdate method

Finally, we have one last very useful method available in the MongoDB Java Driver: findOneAndUpdate().

In most web application, when a user update something, he wants to see this update reflected in his web page. Without the findOneAndUpdate() method, you would have to run an update operation and then fetch the document with a find operation to make sure you are printing the latest version of this object in the web page.

The findOneAndUpdate() method allow you to combine these two operations in one.

ๅ›พ็‰‡ๅ็งฐ

KissesJun

FAQ

Why my Twitter account is locked?

Standard Application

I just didnโ€™t use my account for a long time, I didnโ€™t reach any rules, and I couldnโ€™t receive confirm codes and calls too, on my phone when I wanna resolve the secure problem by verifying my phone number.

  • Updated at 2022-7-1 11:46:13
  • Updated at 2022-6-30 23:12:47 UTC +8
  • Post at 2022-6-29 17:11:46