Skip to content

Commit 9573f6c

Browse files
committed
chore(docs): make example types correct
1 parent 90f4017 commit 9573f6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ const shape = getShape<Scholar>()({
9999
});
100100

101101
// typeof shape => { id: string; university: { name: string }; papers: { id: string; title: string; scholar_id: string }[] }
102-
// getFields(shape) => "id,university:university_id(id,name),papers(id,title,scholar_id)"
102+
// getFields(shape) => "id,university:university_id(name),papers(*)"
103103

104104
const result = await supabase
105105
.from<typeof shape>("scholars")
106106
.select(getFields(shape));
107107

108-
// typeof result => PostgrestResponse<{ id: string; university: { id: string; name: string }; papers: { id: string, title: string; scholar_id: string }[] }>
108+
// typeof result => PostgrestResponse<{ id: string; university: { name: string }; papers: { id: string, title: string; scholar_id: string }[] }>
109109
```

0 commit comments

Comments
 (0)