Skip to content

Support for .js files with graphql-tag npm module #63

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

Closed
Alex-Mann opened this issue Mar 1, 2017 · 5 comments
Closed

Support for .js files with graphql-tag npm module #63

Alex-Mann opened this issue Mar 1, 2017 · 5 comments

Comments

@Alex-Mann
Copy link

It would be great to be able to see the query result when working with the query or mutation as a .js file. For example, in my apollo react project, this would be my current user query:

import gql from 'graphql-tag';

export default gql`
  {
    user {
      id
      email
    }
  }
`;

Alternatively, as a quick workflow fix it would be great to execute these queries within webstorm.

@Buslowicz
Copy link

Any response on that? My team moved from angular webpack starter to angular-cli and can no longer import .graphql files. It would be very handy for us to have the similar execute options for graphql-tag as there is for .graphql files.

@jimkyndemeyer
Copy link
Collaborator

I don't have any spare time left to work on new features for the plugin. A PR would be very welcome.

Best regards,
Jim.

@Buslowicz
Copy link

I've never done any plugin to Intellij, but will try if I get some free time, unless somebody does that before me :P.
Nevertheless, good job with the current plugin :).

@LawJolla
Copy link

This would be a huge and welcome enhancement. Unfortunately, my java knowledge is zero.

Thanks for the hard work, and I'll continue using your great plugin and riding coattails. 👍

@jimkyndemeyer
Copy link
Collaborator

This is possible in the upcoming 2.0 release. See #164 (comment)

Best regards,
Jim.

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

4 participants