Example of how to use Opine with gql for a simple GraphQL server.
deno run --allow-net --allow-read ./examples/graphql/index.ts
if have the repo cloned locally OR
deno run --allow-net --allow-read https://raw.githubusercontent.com/cmorten/opine/main/examples/graphql/index.ts
if you don't!
Then try:
- Opening a GraphQL playground on http//localhost:3000/graphql
- Writing a query:
{
hello
}
- You will get this:
{
"data": {
"hello": "Hello World!"
}
}