Skip to content

Commit

Permalink
Update README.md with example generated class and fix comment in fetc…
Browse files Browse the repository at this point in the history
…h data code
  • Loading branch information
mmvergara committed Jun 18, 2024
1 parent 884e0b9 commit f6e172e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ create table

### 2. Go to the [website](https://mmvergara.github.io/supabase-schema-dart-class-generator/) and input your `SUPABASE_URL` and `SUPABASE_ANON_KEY` to generate the model class.

> Example generated class
```dart
class Books {
int id;
Expand Down Expand Up @@ -105,7 +107,7 @@ we now have a typesafe'ish to interact with the database.
### Fetch Data

```dart
// fetchedBooks is a List<Books>
// fetchedBooks is a typeof List<Books>
final fetchedBooks = await supabase
.from(Books.table_name)
.select("*")
Expand Down

0 comments on commit f6e172e

Please sign in to comment.