• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
dthyresson

dthyresson

graphQLYogaWithSubscriptions

Remix of dthyresson/graphQLYoga
Public
Like
graphQLYogaWithSubscriptions
Home
Code
2
README.md
H
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
main.tsx
https://dthyresson--c05a59ec26cc11f09439569c3dd06744.web.val.run
README.md

GraphQL Yoga Server with Subscriptions

GraphQL Yoga from The Guild is a batteries-included cross-platform GraphQL over HTTP spec-compliant GraphQL server powered by Envelop and GraphQL Tools focused on easy setup, performance and great developer experience.

Subscriptions

Example of Subscriptions.

Usage

To access GraphiQL - the GraphQL Playground - visit the / route. That's what you see in the preview pane below.

Configuration and Documentation

See the GraphQL Yoga documentation for configuration and all the bells and whistles.

Endpoint

For this example, we'll set to / to make it easier to demo.

However, by default, the GraphQL route is configured to be on /graphql which is more common.

Create val
const yoga = createYoga({ schema, })

You can set a custom endpoint:

Create val
const yoga = createYoga({ schema, graphqlEndpoint: "/my-gql", })

Landing Page

A landing page is shown be default whenever a 404 is hit.

You can disable it via the landingPage option.

Create val
const yoga = createYoga({ schema, landingPage: false })

Migrated from folder: GraphQL/graphQLYogaWithSubscriptions

HTTP
  • main.tsx
    dthyresson--c0…44.web.val.run
Code
README.md
H
main.tsx
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.