You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Currently, we don't have a mechanism to extend default SelectDatabaseOptions with additional custom options. There is only one way how to apply custom SelectDatabaseOptions is override default CRUD methods (list, create, retrieve, etc)
Expected behavior
We need to have a way to extend default SelectDatabaseOptions with custom attributes
Minimal reproduction of the problem with instructions
interfaceMySelectDatabaseOptions<TRecord,TResult>extendsSelectDatabaseOptions<TRecord,TResult>,ListPaginationSelectDatabaseOptions<TRecord,TResult>{}classTestRepositoryextendsRepository<TestRecord,{idType: string;selectOptions: MySelectDatabaseOptions<TRecord,unknown>}>{}constlistRecords=async(testRepository: TestRepository)=>{constrecords=awaittestRepository.list({limit: 20,// <---- should not throw an error})}
What is the motivation / use case for changing the behavior?
It's redundant to create new class which extends Repository and override default types
Environment
Nest version: X.Y.Z
For Tooling issues:
- Node version: Any
- Platform: Any
Others:
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
Currently, we don't have a mechanism to extend default
SelectDatabaseOptions
with additional custom options. There is only one way how to apply customSelectDatabaseOptions
is override default CRUD methods (list, create, retrieve, etc)Expected behavior
We need to have a way to extend default
SelectDatabaseOptions
with custom attributesMinimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
It's redundant to create new class which extends
Repository
and override default typesEnvironment
The text was updated successfully, but these errors were encountered: