hasura / graphqurl

curl for GraphQL with autocomplete, subscriptions and GraphiQL. Also a dead-simple universal javascript GraphQL client.
Apache License 2.0
3.34k stars 101 forks source link

support gql-parsed strings as query #37

Open shahidhk opened 6 years ago

shahidhk commented 6 years ago

Right now query in the nodejs api is just a string. we should support gql-parsed strings too, so that if they are exported elsewhere, it can be used directly.


import gql from 'graphql-tag';

export const GRAPHQL_QUERY=gql`
  query {
    something {
      anotherthing
    }
  }
`;
tharun208 commented 5 years ago

Hi, @shahidhk, can you help me on this by clearly explaining the issue

SaravgiYash commented 4 years ago

Hi, @shahidhk I would like to work on this issue. If you guide me on that all changes do I need to make and in which file?