File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
templates/dataconnect-prompts Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -234,25 +234,6 @@ type CreateFollow($uid: String!) {
234
234
}
235
235
```
236
236
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
-
256
237
### Query explorer
257
238
This query is going to be used in the Firebase Query Explorer view. Because of
258
239
this, it's ideal to avoid using variables. Use hardcoded literals instead. For
You can’t perform that action at this time.
0 commit comments