@synthql/react
v0.109.4
Published
React client for SynthQL based on [TanStack Query](https://tanstack.com/query/latest/docs/framework/react/installation).
Downloads
1,905
Readme
@synthql/react
React client for SynthQL based on TanStack Query.
import { from } from './generated';
const query = from('users').columns('id', 'first_name').filter({ id: 1 }).all();
const { data: users } = useSynthql(query);
console.log(users);
// Will print:
[{ id: 1, first_name: 'John' }];