Graphql-js: GraphQL support for Deno

Created on 20 May 2020  路  5Comments  路  Source: graphql/graphql-js

Feature requests

Deno was released a few days ago, is there any plan to support it?
https://deno.land/v1

enhancement

Most helpful comment

@LaurenceM10 Yes, it's planned 馃憤
And @hereisnaman did some preliminary testing for that.
Our target is to add graphql module to this list: https://deno.land/x/
It's not a top priority at the moment but something that we want to do in the next few weeks.

All 5 comments

@LaurenceM10 Yes, it's planned 馃憤
And @hereisnaman did some preliminary testing for that.
Our target is to add graphql module to this list: https://deno.land/x/
It's not a top priority at the moment but something that we want to do in the next few weeks.

Ok. Thanks!

FWIW, it's already possible to use GraphQL in Deno by utilizing Pika CDN

import {
  GraphQLObjectType,
  GraphQLSchema,
  GraphQLString,
} from "https://cdn.pika.dev/graphql@^15.0.0";

Here's a full example using the middleware I wrote for the ABC framework.

@danielrearden This isn't working anymore:

The requested module '/-/[email protected]/dist=es2019/graphql.js' does not provide an export named 'default'

@danielrearden This isn't working anymore:

The requested module '/-/[email protected]/dist=es2019/graphql.js' does not provide an export named 'default'

I ran into the same issue. On reddit I learned that it's possible to use the URL from the error message as a work around.

import { graphql, buildSchema } from "https://cdn.pika.dev/-/[email protected] Lwp7DcGGGn15gbf/dist=es2019/graphql.js";

Was this page helpful?
0 / 5 - 0 ratings

Related issues

scf4 picture scf4  路  3Comments

adriano-di-giovanni picture adriano-di-giovanni  路  3Comments

thomasdingemanse picture thomasdingemanse  路  4Comments

hekike picture hekike  路  4Comments

galki picture galki  路  3Comments