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

Add support for graphql loaders? #58

Closed
rad182 opened this issue Feb 6, 2020 · 5 comments · May be fixed by #108
Closed

Add support for graphql loaders? #58

rad182 opened this issue Feb 6, 2020 · 5 comments · May be fixed by #108
Labels
question Further information is requested

Comments

@rad182
Copy link

rad182 commented Feb 6, 2020

Hello is there a way to add loader to support .graphql files?

@jayair
Copy link
Member

jayair commented Feb 8, 2020

Hmmm do these files need an additional Webpack loader? I don't think we support this natively. But you can copy files to the bundle. Would that work?

@jayair jayair added the question Further information is requested label Feb 8, 2020
@rad182
Copy link
Author

rad182 commented Feb 9, 2020

yes in my current project i'm using https://github.com/apollographql/graphql-tag

{
        test: /\.(graphql|gql)$/,
        exclude: /node_modules/,
        loader: 'graphql-tag/loader',
      },

As for copying. I tried that also but can't wait make it work.
I ended up using js

gql`
type Query {
    hello: String
  }
`

@mohamedGamalAbuGalala
Copy link

mohamedGamalAbuGalala commented Feb 11, 2020

Check this link

this Will guide you to how we need to support graphql loaders.
@jayair @tume

@emre-haufe-canei
Copy link

I have just make a PR for supporting gql and graphql files

@jayair
Copy link
Member

jayair commented Jul 3, 2020

Just leaving this here and closing this thread to avoid future confusions.

#65 (comment)

@jayair jayair closed this as completed Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants