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

Detect format from output file path #868

Merged
merged 4 commits into from Mar 13, 2020
Merged

Conversation

jkimbo
Copy link
Member

@jkimbo jkimbo commented Jan 31, 2020

If the output filepath has a .graphql extension then export the schema in the graphql format.

Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

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

We have two methods on the command: save_json_file & save_graphql_file ; We are testing the save_json_file method but dropping coverage for save_graphql_file.

We should duplicate the test test_generate_file_on_call_graphql_schema to test the original functionality.

https://coveralls.io/jobs/58452210/source_files/1567201088

@jkimbo jkimbo force-pushed the add-format-option-manage-command branch from 25d2bd5 to 9fc9bbe Compare February 23, 2020 09:26
@jkimbo jkimbo requested a review from zbyte64 February 23, 2020 09:26
@jkimbo
Copy link
Member Author

jkimbo commented Feb 23, 2020

@zbyte64 PR ready for another review

Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

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

Looks good!

@jkimbo jkimbo merged commit 348fcf3 into master Mar 13, 2020
@jkimbo jkimbo deleted the add-format-option-manage-command branch March 13, 2020 10:05
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.

None yet

2 participants