fixing env vars issue

This commit is contained in:
Samuel Andert
2023-08-25 12:31:15 +02:00
parent 8d4b217c99
commit 3ab9976ce8
7 changed files with 70 additions and 51 deletions

View File

@ -1,5 +1,21 @@
<script>
import GraphQL from "./GraphQL.svelte";
<script lang="ts">
import { createQuery } from "../lib/wundergraph";
import Login from "$lib/Login.svelte";
const projectsQuery = createQuery({
operationName: "Projects",
});
</script>
<GraphQL />
<Login />
<br />
Projects
<div class="results">
{#if $projectsQuery.isLoading}
<p>Loading...</p>
{:else if $projectsQuery.error}
<pre>Error: {JSON.stringify($projectsQuery.error, null, 2)}</pre>
{:else}
<pre>{JSON.stringify($projectsQuery.data, null, 2)}</pre>
{/if}
</div>