You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/control-flow/backend-logic/backend-query/backend-query.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,7 @@ import TabItem from '@theme/TabItem';
17
17
18
18
We offer you the following types of Backend Queries that you can specify on any widget or page.
19
19
20
-
*[**Query Collection**](query-collection.md)**:** This query type is used to fetch a single record or a list of
21
-
records from a Firestore Collection.
20
+
*[**Query Collection**](query-collection.md)**:** This query type is used to fetch a single record or a list of records from a Firestore Collection or Supabase Table.
22
21
*[**Document from Reference**](document-from-reference.md)**:** Used to retrieve the details from a document reference.
23
22
*[**API Call Query**](api-call-query.md)**:** Used to initiate an API
keywords: [Query Collection, Backend Query, Backend Logic, Control Flow, FlutterFlow]
8
8
---
9
+
import Tabs from '@theme/Tabs';
10
+
import TabItem from '@theme/TabItem';
11
+
9
12
# Query Collection / Table
10
13
11
14
Quering Firestore Collection or Supabase Table helps you to retrieve a record (or a list of records) automatically whenever a
@@ -38,9 +41,14 @@ backend query:
38
41
8. You can also set the **order** in which the documents should be returned, click **+ Order By**
39
42
button. Select a **Field Name** to be used for ordering, and choose the **Order** to be
40
43
either `Increasing` or `Decreasing`.
41
-
9. Click **Save**.
42
-
10. If the selected query returns a list of documents and if it's applied to any flexible widget (like `Column`, `Row`, or `ListView`) then FlutterFlow will generate the children widgets
43
-
dynamically. A dialog will be displayed with a similar message, click **Ok**.
44
+
9. Below are some optional settings that you can configure based on your requirements:
45
+
-**Single Time Query**: When this is disabled, the query results will automatically refresh whenever documents or rows are created, updated, or deleted. However, for **Supabase**, this option is enabled by default, meaning the query will run only once. To enable real-time updates, you must turn it off.
46
+
-**Ignore Empty Filter Values**: Disabled by default, meaning the query will attempt to find documents with empty text fields if any filter value is empty. When enabled, the query will ignore fields with empty filter values instead.
47
+
-**Filter on Null Values**: By default, if any filter value is null, the query will ignore that filter. Enabling this option will include null filters in the query.
48
+
-**Enable Infinite Scroll**: To implement infinite scrolling, enable this option and follow the instructions here.
49
+
10. Click **Confirm**.
50
+
11. If the selected query returns a list of documents and if it's applied to any flexible widget (like `Column`, `Row`, or `ListView`) then FlutterFlow will generate the children widgets
51
+
dynamically. A dialog will be displayed with a similar message, click **Confirm**.
44
52
45
53
:::info
46
54
The instructions to query a Supabase table are almost the same, except that for **Query Type**, you should select **Supabase Query**.
@@ -53,7 +61,7 @@ The instructions to query a Supabase table are almost the same, except that for
@@ -113,4 +149,21 @@ You can follow similar steps for using the record data on the other widgets as w
113
149
allowFullScreen
114
150
allow="clipboard-write">
115
151
</iframe>
116
-
</div>
152
+
</div>
153
+
<p></p>
154
+
</TabItem>
155
+
</Tabs>
156
+
157
+
## FAQs
158
+
<details>
159
+
<summary>Why are real-time updates for Supabase not working?</summary>
160
+
<p>
161
+
First, ensure that the **Single Time Query** option is disabled in the query where you've added it. Then, verify that the real-time feature is enabled for your table in Supabase project. You can find this option in the top-right corner of the table viewer.
0 commit comments