added in License

This commit is contained in:
2024-11-18 20:53:13 +05:30
parent 9d40c9d7ec
commit a2739dbbcd
38 changed files with 222 additions and 39 deletions

View File

@@ -1,3 +1,7 @@
// 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 { gql } from '@urql/svelte';
export const Me = gql`
query Me {

View File

@@ -1,8 +1,12 @@
// 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]
exchanges: [fetchExchange]
});
}