4 results found
-
Allow to use customClaims in eq_expr
Im developing a multi tenant system using firebase dataconnect and it would be very usefull use a query like this:
query getServices @auth(level: USER) {
services(where: {
tenantId: {eq_expr: "auth.token.tenantId"}
})
{
id
name
}
}unfurtunately when i run this query i received the message:
query, getServices, services (where.tenantId.eqexpr: StringExpr): unsupported expression "auth.token.tenantId" (currently only "auth.uid" and "uuidV4()" are supported)9 votesWe've added more robust expression evaluation which should include being able to access custom claims in the auth token. Give it a try!
-
Query Pagination
Data Connect now supports LIMIT and ORDER BY.
Would love
OFFSET
and page token support to resume from a long query.49 votesWe have added support for "offset" to Data Connect table queries. We may evaluate more sophisticated pagination token support in the future, but this should unblock simple use cases!
-
Dart SDK for Data Connect
Support using Data Connect in Dart and Flutter apps, by having a core SDK for Dart and generating Dart types from the schema.
138 votesData Connect is now in public preview with full support for Flutter, including generated SDKs!
See the docs for more: https://firebase.google.com/docs/data-connect/flutter-sdk
-
SQL Aggregation Queries in GraphQL
Support aggregations (COUNT, SUM, AVG, MIN, MAX) with grouping as part of the built-in GraphQL query builder.
69 votesGreat news! Firebase Data Connect is now Generally Available (GA), and includes powerful support for Aggregation Queries.
This means you can now efficiently perform server-side calculations (like SUM, AVG, COUNT, MIN, MAX) to summarize your data and build more insightful features.
Learn how to use them in the docs: https://firebase.google.com/docs/data-connect/schemas-queries-mutations#aggregation_queries
We hope this helps you build even better apps!
- Don't see your idea?