svelte-apollo
svelte-apollo copied to clipboard
Svelte integration for Apollo GraphQL
👋 At Apollo we are currently working on implementing `@defer` support in our Web Client I wanted to check in to see if there was any questions we can answer...
I'm trying to refactor some CRUD functions from some Svelte (gui) components into a JS file. Does svelte-apollo also work within a regular js file or do I need to...
``` import Header from '$lib/layout/Header.svelte' import Footer from '$lib/layout/Footer.svelte' import '$lib/style/styles.scss' import { setClient } from "svelte-apollo"; import { ApolloClient, HttpLink } from '@apollo/client/core/core.cjs.js' import { InMemoryCache } from '@apollo/client/cache/cache.cjs.js'...
Svelte apollo does not seem to correctly handle the error policies. See [here](https://www.apollographql.com/docs/react/data/error-handling/#graphql-error-policies) Looking at the code: https://github.com/timhall/svelte-apollo/blob/master/packages/svelte-apollo/src/observable.ts#L58-L63 Below is pseudo code proposing checks for the different policies: ```ts if...
Hi, thank you for the project! Upon adding this to an almost brand-new svelte kit project with adapter static, I get the following error ``` Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/Users/raphael/dev/nyt/node_modules/.pnpm/svelte-apo...
I have tried both these examples but they did not work. https://stackoverflow.com/questions/66496332/problems-accessing-data-from-a-graphql-query-in-javascript-with-svelte I created my own Promise ``` let companyStore; async function getCompany() { companyStore = query("xyz"); (await $companyStore); return...
I was wondering if there is some blogpost/guideline that sums up what the migration "todos" are, it seems to me that the structure of svelte-apollo changed quite a bit
After installing the library I get the following errors. No idea what the solution is. :-/ ``` Pre-bundling dependencies: svelte @apollo/client svelte/animate svelte/easing svelte/internal (...and 3 more) (this will be...
The error "Function called outside component initialization" is encountered by many, and its cause always is obscure to the developer. This issue is commonly raised on Stackoverflow, Github, and other...
In the example code you can use {#if ..} to wait for the query result. However, this obviously only works in the html part. I've tried async/await to capture the...