graphql-js
graphql-js copied to clipboard
GraphQL support for Deno
Feature requests
Deno was released a few days ago, is there any plan to support it? https://deno.land/v1
@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";
Does anyone have the link to DENO package I could not find it ?
Hi. Would it be possible for a maintainer to provide some context on where the project currently is re. Deno support? I see various mentions of Deno in commits, branches etc but can't make out the overall picture. Is support for Deno still something that's being worked on?
Using a CDN like https://cdn.skypack.dev/graphql?dts seems to be working well...
So we publish under deno branch here https://github.com/graphql/graphql-js/tree/deno which if you import should work
Thanks to all the work that has been done here, If anyone wants to use a modern GraphQL framework with Deno, Yoga Server now fully supports Deno without you needing to change anything about how you write your code