Closed bobwatcherx closed 2 years ago
Hi, const book = query(GETDATA)
returns a storage with promises within, you should access the result using $
as show you below:
{#if $books.loading}
Loading...
{:else if $books.error}
Error: {$books.error.message}
{:else}
{#each $books.data.books as book}
{book.title} by {book.author.name}
{/each}
{/if}
my file svelte
My CONSOLE: {subscribe: ƒ, fetchMore: ƒ, getCurrentResult: ƒ, getLastError: ƒ, getLastResult: ƒ, …}