January 2018
Intermediate to advanced
414 pages
10h 29m
English
So far, we have used simple MongoDB commands to obtain data. If we need to implement something more complex, such as searching for customers, we need to perform more advanced queries.
First, we will need a new method in our CustomerRepository class:
package com.microservices.chapter5import org.springframework.data.mongodb.core.ReactiveMongoTemplateimport org.springframework.data.mongodb.core.findimport org.springframework.data.mongodb.core.findByIdimport org.springframework.data.mongodb.core.query.Criteria.whereimport org.springframework.data.mongodb.core.query.Queryimport org.springframework.data.mongodb.core.query.isEqualToimport org.springframework.data.mongodb.core.removeimport org.springframework.stereotype.Repository ...
Read now
Unlock full access