package com.example.config;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * example repository
 */
@Repository
public interface PersonRepository extends MongoRepository<Person, String> {

    List<Person> findByLastName(String name);

    Person findByPId(String personId);

}
