rano/web/lib/gql/client.ts

9 lines
176 B
TypeScript
Raw Normal View History

2024-11-01 17:49:56 +00:00
import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
export function newClient(url: string) {
return new Client({
url,
exchanges: [ fetchExchange]
2024-11-01 17:49:56 +00:00
});
}