const query = from('films')
.columns('id', 'title', 'year')
.where({ id: { in: [1, 2, 3] } })
.many();
const { data } = useSynthql(query);
// `data` will resolve to
[
{
id: 1,
title: 'The Lord of the Rings: The Fellowship of the Ring',
year: '2001',
},
{
id: 2,
title: 'The Lord of the Rings: The Two Towers',
year: '2002',
},
{
id: 3,
title: 'The Lord of the Rings: The Return of the King',
year: '2003',
},
];
-
Notifications
You must be signed in to change notification settings - Fork 0
A fullstack, type-safe client for your PostgreSQL database
synthql/SynthQL
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A fullstack, type-safe client for your PostgreSQL database