rano/web/lib/gql/client.ts
2024-11-18 20:53:13 +05:30

13 lines
332 B
TypeScript

// Copyright 2024 Patial Tech. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
export function newClient(url: string) {
return new Client({
url,
exchanges: [fetchExchange]
});
}