FindOneOptions: BaseRepositoryOptions & OmitStrict<
    TOFindOneOptions<T>,
    "where" | "transaction" | "relations" | "withDeleted",
> & { relations?: (keyof T)[]; where?: Where<T> }

Options for finding a single entity.

Type Parameters

Type declaration

  • Optionalrelations?: (keyof T)[]

    The relations to include in the found entity.

  • Optionalwhere?: Where<T>

    The where filter to find the entity by.