Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/runtime/src/client/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const NUMERIC_FIELD_TYPES = ['Int', 'Float', 'BigInt', 'Decimal'];
/**
* Client API methods that are not supported in transactions.
*/
export const TRANSACTION_UNSUPPORTED_METHODS = ['$transaction', '$disconnect', '$use'] as const;
export const TRANSACTION_UNSUPPORTED_METHODS = ['$transaction', '$connect', '$disconnect', '$use'] as const;

/**
* Prefix for JSON field used to store joined delegate rows.
Expand Down
5 changes: 2 additions & 3 deletions packages/runtime/src/client/crud/operations/group-by.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ export class GroupByOperationHandler<Schema extends SchemaDef> extends BaseOpera
query = this.dialect.buildSkipTake(query, skip, take);

// orderBy
if (parsedArgs.orderBy) {
query = this.dialect.buildOrderBy(query, this.model, this.model, parsedArgs.orderBy, negateOrderBy);
}
query = this.dialect.buildOrderBy(query, this.model, this.model, parsedArgs.orderBy, negateOrderBy);

// having
if (parsedArgs.having) {
query = query.having(() => this.dialect.buildFilter(this.model, this.model, parsedArgs.having));
}
Expand Down