React Query
$ zeus schema.graphql ./ --reactQueryimport { useTypedQuery } from './zeus/reactQuery';
const Main = () => {
const { data } = useTypedQuery({
// Get autocomplete here:
drawCard: {
name: true,
},
});
// data response is now typed
return <div>{data.drawCard.name}</div>;
};Last updated
Was this helpful?