Skip to content

About

🦕 Create a GraphQL schema AST from template literal. Deno port of `graphql-tag` library

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-tag

GitHub release (latest by date) GitHub Workflow Status Codecov

🦕 Deno port of graphql-tag library.

Create a GraphQL schema AST from template literal.

Example

import { buildASTSchema, graphql } from 'npm:[email protected]'
import { gql } from 'jsr:@deno-libs/[email protected]'

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 }))

About

🦕 Create a GraphQL schema AST from template literal. Deno port of `graphql-tag` library

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages