package br.com.rayankonecny.userserviceapi.repository;

import java.util.Optional;

import br.com.rayankonecny.userserviceapi.entity.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends MongoRepository<User, String> {

    Optional<User> findByEmail(final String email);
}
