这是indexloc提供的服务,不要输入任何密码
Skip to content

template queries in graphiql from query params #283

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

Merged
merged 2 commits into from
Aug 14, 2018
Merged

template queries in graphiql from query params #283

merged 2 commits into from
Aug 14, 2018

Conversation

wawhal
Copy link
Contributor

@wawhal wawhal commented Aug 13, 2018

If there are a bunch of queries at a file path, say: https://raw.githubusercontent.com/wawhal/test-repo/master/queries.graphql, you can template GraphiQL with those queries by passing the URL in query params.

For example: if the console is running at https://wofoo.herokuapp.com/console, to template the queries, the URL would be: https://wofoo.herokuapp.com/console?query_file=https://raw.githubusercontent.com/wawhal/test-repo/master/queries.graphql

@wawhal wawhal added k/enhancement New feature or improve an existing feature c/console Related to console labels Aug 13, 2018
@wawhal wawhal requested a review from praveenweb August 13, 2018 14:23
@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-283.herokuapp.com

@shahidhk
Copy link
Member

@praveenweb needs review.

Copy link
Member

@praveenweb praveenweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change componentWillMount code into constructor

};
}

componentWillMount() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

componentWillMount is deprecated. It can be part of the constructor.

@hasura-bot
Copy link
Contributor

Review app available at: https://hge-ci-pull-283.herokuapp.com

@shahidhk shahidhk merged commit 6ba9c75 into hasura:master Aug 14, 2018
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-283.herokuapp.com is deleted

@wawhal wawhal deleted the sample-queries branch August 14, 2018 10:07
shahidhk pushed a commit to shahidhk/graphql-engine that referenced this pull request Sep 11, 2018
update tutorial part 9 console permissions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/console Related to console k/enhancement New feature or improve an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants