graphQLYoga
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in miliseconds.
main.tsx
https://dthyresson--c11534d826cc11f09439569c3dd06744.web.val.run
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.
To access GraphiQL - the GraphQL Playground - visit the /
route.
That's what you see in the preview pane below.
See the GraphQL Yoga documentation for configuration and all the bells and whistles.
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.
You can set a custom endpoint:
A landing page is shown be default whenever a 404 is hit.
You can disable it via the landingPage
option.
Migrated from folder: GraphQL/graphQLYoga