rano/web/lib/gql/client.ts
Ankit Patial 45c318b897 - graph, dotenv read
- graph, cors and secure header
- web, urql client basic setup
2024-11-04 11:35:43 +05:30

9 lines
176 B
TypeScript

import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
export function newClient(url: string) {
return new Client({
url,
exchanges: [ fetchExchange]
});
}