GraphQL #171
Unanswered
carstenjaksch
asked this question in
Q&A
GraphQL
#171
Replies: 1 comment 4 replies
-
I made it using urql! 🎉 Tested that without Is there a parent component that holds all sections, so that I could use the context API? My code so far: import { createClient, gql, queryStore } from '@urql/svelte'
const client = createClient({
url: 'https://api.endpoint.com/graphql',
})
$: products = queryStore({
client,
query: gql`
query {
products {
edges {
node {
name
}
}
}
}
`,
}) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How would you consume a GraphQL API with Primo components?
I tried to use Houdini, but it requires some initial setup that I am unable to replicate with Primo.
Beta Was this translation helpful? Give feedback.
All reactions