rano/web/lib/gql/client.ts

13 lines
332 B
TypeScript
Raw Normal View History

2024-11-18 15:23:13 +00:00
// 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.
2024-11-01 17:49:56 +00:00
import { Client, cacheExchange, fetchExchange } from '@urql/svelte';
export function newClient(url: string) {
return new Client({
url,
2024-11-18 15:23:13 +00:00
exchanges: [fetchExchange]
2024-11-01 17:49:56 +00:00
});
}