Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL support for Deno #2566

Open
LaurenceM10 opened this issue May 20, 2020 · 9 comments
Open

GraphQL support for Deno #2566

LaurenceM10 opened this issue May 20, 2020 · 9 comments

Comments

@LaurenceM10
Copy link

Feature requests

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

@IvanGoncharov
Copy link
Member

@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.

@LaurenceM10
Copy link
Author

Ok. Thanks!

@danielrearden
Copy link
Contributor

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.

@mlow
Copy link

mlow commented Jun 4, 2020

@danielrearden This isn't working anymore:

The requested module '/-/graphql@v15.0.0-KZBXeLwp7DcGGGn15gbf/dist=es2019/graphql.js' does not provide an export named 'default'

@dardanbujupaj
Copy link

@danielrearden This isn't working anymore:

The requested module '/-/graphql@v15.0.0-KZBXeLwp7DcGGGn15gbf/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/-/graphql@v15.0.0-KZBXe Lwp7DcGGGn15gbf/dist=es2019/graphql.js";

IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this issue Jun 10, 2020
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this issue Jun 10, 2020
IvanGoncharov added a commit that referenced this issue Jun 10, 2020
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this issue Jun 10, 2020
IvanGoncharov added a commit to IvanGoncharov/graphql-js that referenced this issue Jun 10, 2020
IvanGoncharov added a commit that referenced this issue Jun 10, 2020
@khanakia
Copy link

Does anyone have the link to DENO package I could not find it ?

@rossholdway
Copy link

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...

@saihaj
Copy link
Member

saihaj commented Jun 27, 2022

So we publish under deno branch here https://github.com/graphql/graphql-js/tree/deno which if you import should work

@Urigo
Copy link
Contributor

Urigo commented Oct 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants