Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
/ graphql_tools Public archive

[DEPRECATED] 🦕 Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library

License

Notifications You must be signed in to change notification settings

deno-libs/graphql_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql_tools

GitHub release (latest by date)

DEPRECATED! Use https://esm.sh/@graphql-tools/schema instead.

Example

import { serve } from 'https://deno.land/std@0.167.0/http/server.ts'
import { makeExecutableSchema } from 'https://esm.sh/@graphql-tools/schema'
import { GraphQLHTTP } from 'https://deno.land/x/gql@1.2.0/mod.ts'
import { gql } from 'https://deno.land/x/graphql_tag@0.1.0/mod.ts'

const typeDefs = gql`
  type Query {
    hello: String
  }
`

const resolvers = {
  Query: {
    hello: () => `Hello World!`
  }
}

const schema = makeExecutableSchema({ typeDefs, resolvers })

await serve(GraphQLHTTP({ schema, graphiql: true }), { port: 3000 })

About

[DEPRECATED] 🦕 Useful tools to create and manipulate GraphQL schemas. Deno port of `graphql-tools` library

Topics

Resources

License

Stars

Watchers

Forks