libs/users/domain/src/lib/users-repository.interface.ts
Methods |
findOneByEmail | ||||||
findOneByEmail(email: string)
|
||||||
Parameters :
Returns :
Promise<User | null>
|
findOneById | ||||||
findOneById(id: string)
|
||||||
Parameters :
Returns :
Promise<User | null>
|
import { User } from './user.entity';
export interface UsersRepository {
findOneById(id: string): Promise<User | null>;
findOneByEmail(email: string): Promise<User | null>;
}
export const USERS_REPOSITORY = Symbol('USERS_REPOSITORY');