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
NestJS CRUD currently allows for joining related entities in queries. However, there is limited control over the join condition itself.
Request:
This feature request proposes the addition of join filters, allowing users to specify a WHERE condition within the ON clause of a join.
Benefits:
Increased flexibility in querying related data.
Ability to create more complex and specific queries involving joins.
Implementation:
Introduce a new property within the QueryJoin type of crud-request. This property could be named on and accept array of objects of type QueryFilter representing the WHERE condition for the join.
Example:
export declare type QueryJoin = {
field: string;
select?: QueryField[];
on?: QueryFilter[]; // New property
};
This functionality would allow users to specify conditions within the join, like so:
query.setJoin({
field: 'author',
select: ['name', 'image'],
on: [{ field: 'author.id', operator: 'eq', value: 123 }], // Filter by specific author ID
});
By implementing join filters, dataui-nestjs-crud would provide greater control over join conditions, enabling more sophisticated data retrieval scenarios.
The text was updated successfully, but these errors were encountered:
Current Functionality:
NestJS CRUD currently allows for joining related entities in queries. However, there is limited control over the join condition itself.
Request:
This feature request proposes the addition of join filters, allowing users to specify a WHERE condition within the ON clause of a join.
Benefits:
Implementation:
Introduce a new property within the QueryJoin type of crud-request. This property could be named on and accept array of objects of type QueryFilter representing the WHERE condition for the join.
Example:
This functionality would allow users to specify conditions within the join, like so:
By implementing join filters, dataui-nestjs-crud would provide greater control over join conditions, enabling more sophisticated data retrieval scenarios.
The text was updated successfully, but these errors were encountered: