Skip to content

Commit 8b5d623

Browse files
markarndtTrCaM
authored andcommitted
Update operation-generation-cursor-windsurf-rule.txt (firebase#8628)
FDC does support aggregations. Removing this section.
1 parent 896b74c commit 8b5d623

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

templates/dataconnect-prompts/operation-generation-cursor-windsurf-rule.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -234,25 +234,6 @@ type CreateFollow($uid: String!) {
234234
}
235235
```
236236

237-
### Aggregate queries
238-
239-
Firebase Data Connect does not support aggregation queries. For example, there
240-
is no way to count the number of records, or average a set of values. In this
241-
context, the best you can do is return a list of fields for the user to
242-
aggregate themselves, or nothing at all.
243-
244-
Some pseudo-aggregations are supported. For example, you can get the maximum or minimum
245-
value in a set by ordering and selecting the first items like the following:
246-
```graphql
247-
# This is an example, real-world fields and queries will be different.
248-
query topRatedMovie {
249-
movie(first: {orderBy: [{rating: DESC}]}) {
250-
title
251-
rating
252-
}
253-
}
254-
```
255-
256237
### Query explorer
257238
This query is going to be used in the Firebase Query Explorer view. Because of
258239
this, it's ideal to avoid using variables. Use hardcoded literals instead. For

0 commit comments

Comments
 (0)