Skip to content

Commit

Permalink
Update cds-ql.md
Browse files Browse the repository at this point in the history
Add warning:
When using the combination of $apply with groupby and only a subset of keys is included, it can lead to the result not being uniquely sorted anymore.
  • Loading branch information
larslutz96 authored Feb 28, 2024
1 parent 804e55a commit d1216a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions node.js/cds-ql.md
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,9 @@ SELECT ... .orderBy ('a.name', 'b desc')
SELECT ... .orderBy ({ref:['a','name']}, {ref:['b'],sort:'desc'})
```

::: warning
When using $apply with groupby and only a subset of keys is included, it can lead to the result not being uniquely sorted anymore.
:::


### .limit() {.method}
Expand Down

0 comments on commit d1216a9

Please sign in to comment.