In our already existing Movie model, we just added one more annotation: @Document(collection = "movies"). This annotation will inform MongoDB as to the name of the collection in the DB where this model will be stored.
In our already existing Movie model, we just added one more annotation: @Document(collection = "movies"). This annotation will inform MongoDB as to the name of the collection in the DB where this model will be stored.
18.191.198.227