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

Use Guild's GraphQL Toolkit #77

Merged
merged 4 commits into from
Jan 30, 2019
Merged

Use Guild's GraphQL Toolkit #77

merged 4 commits into from
Jan 30, 2019

Conversation

kamilkisiela
Copy link
Owner

No description provided.

@kamilkisiela kamilkisiela merged commit b4d653e into master Jan 30, 2019
@kamilkisiela kamilkisiela deleted the toolkit branch January 30, 2019 12:30
@@ -17,7 +18,9 @@ export async function introspect(
const renderer = options.renderer || new ConsoleRenderer();

try {
const schema = await loadSchema(schemaPointer);
const schema = await loadSchema(schemaPointer, {
token: options.token,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are you passing it as token? @kamilkisiela
I think in case of url, you need to specify { headers: { Authorization: options.token }}

Copy link
Owner Author

Choose a reason for hiding this comment

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

Yeah but loadSchema is not from graphql-toolkit, it's a wrapper and token is to pass Github Token so we can load schema from github repo.

Copy link
Collaborator

Choose a reason for hiding this comment

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

missed that 😄

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

Successfully merging this pull request may close these issues.

2 participants