🦕 Deno port of graphql-tag library.
Create a GraphQL schema AST from template literal.
import { buildASTSchema, graphql } from 'npm:graphql@17.0.2'
import { gql } from 'jsr:@deno-libs/graphql-tag@0.2.0'
const typeDefs = gql`
type Query {
hello: String
}
`
const query = `{ hello }`
const resolvers = { hello: () => 'world' }
const schema = buildASTSchema(typeDefs)
console.log(await graphql({ schema, source: query, rootValue: resolvers }))