Skip to content

Commit caf10c8

Browse files
committed
Supabase query note
1 parent a0812a0 commit caf10c8

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

docs/resources/control-flow/backend-logic/backend-query/query-collection.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
---
22
slug: /resources/backend-query/query-collection
3-
title: Query Collection
3+
title: Query Collection / Table
44
description: Learn how to query a collection in your FlutterFlow app.
55
tags: [Query Collection, Backend Query, Backend Logic, Control Flow, FlutterFlow]
66
sidebar_position: 2
77
keywords: [Query Collection, Backend Query, Backend Logic, Control Flow, FlutterFlow]
88
---
9-
# Query Collection
9+
# Query Collection / Table
1010

11-
**Query Collection** helps you to retrieve a record (or a list of records) automatically whenever a
11+
Quering Firestore Collection or Supabase Table helps you to retrieve a record (or a list of records) automatically whenever a
1212
user navigates to the page containing the query. The information that is present in the record can
1313
be used to update any widget present inside.
1414

1515
:::info[Prerequisites]
16-
17-
In order to use this backend query, you should have:
18-
19-
1. Completed all the steps of
20-
[**Firebase Setup**](../../../../ff-integrations/firebase/connect-to-firebase-setup.md) for your
21-
project.
22-
2. At least one **Firestore Collection** defined in your project.
16+
- To query Firestore collection, complete the [**Firebase setup**](../../../../ff-integrations/firebase/connect-to-firebase-setup.md) and have some data in a [**Collection**](../../../../ff-integrations/database/cloud-firestore/creating-collections.md).
17+
- To query Supabase table, complete the [**Supabase**](../../../../ff-integrations/supabase/supabase-setup.md) Setup and have some data in a [**table**](../../../../ff-integrations/supabase/supabase-setup.md#create-tables-in-supabase).
2318
:::
2419

2520
## Defining the Query
@@ -44,10 +39,13 @@ backend query:
4439
button. Select a **Field Name** to be used for ordering, and choose the **Order** to be
4540
either `Increasing` or `Decreasing`.
4641
9. Click **Save**.
47-
10. If the selected query returns a list of documents and if it's applied to any flexible widget (
48-
like `Column`, `Row`, or `ListView`) then FlutterFlow will generate the children widgets
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
4943
dynamically. A dialog will be displayed with a similar message, click **Ok**.
5044

45+
:::info
46+
The instructions to query a Supabase table are almost the same, except that for **Query Type**, you should select **Supabase Query**.
47+
:::
48+
5149
<div style={{
5250
position: 'relative',
5351
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding

0 commit comments

Comments
 (0)