diff options
Diffstat (limited to 'frontend/src/services/graphql-client.ts')
| -rw-r--r-- | frontend/src/services/graphql-client.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/frontend/src/services/graphql-client.ts b/frontend/src/services/graphql-client.ts new file mode 100644 index 0000000..ad2680a --- /dev/null +++ b/frontend/src/services/graphql-client.ts @@ -0,0 +1,6 @@ +import { Client, cacheExchange, fetchExchange } from "urql"; + +export const client = new Client({ + url: "/graphql", + exchanges: [cacheExchange, fetchExchange], +}); |
