Spring Boot MongoDB Document References and Spring Repositories

preview_player
Показать описание
This is how to use the @Query annotation in Spring when dealing with MongoDB's.
I also show the difference between references and objects.
Enjoy! :-)
Feel free to leave a comment and question.
The code is located here:
Follow me on twitter:
Support me on Patreon:
Рекомендации по теме
Комментарии
Автор

Exactly what I was looking for, thank you.

tomchandler
Автор

Great video Mike, But i have a question about weather it is possible to not query the spaceships but only return their ids(in case we have thousands of referenced spaceships and i only need their ids) when using @DocumentReference. Thanks In Advance

klod
Автор

Hi, Mike can you make a video about how to use @DocumentReference?

aryacachari
Автор

hi this video was most helpful but I got stuck with something.. how should your json that you send to your post service should look like for a referenced document? like when you create a new space station with a list of spaceships id

leiratam
Автор

Nice video! BTW, what happened to the label on your water bottle? lol

Misanthrope
Автор

It's difficult to watch such long videos.. Although great stuff 👍👍👍

katiesun
visit shbcf.ru