Skip to content

Fix: Type 'GraphQLType' is not assignable to type 'GraphQLOutputType'. module name on Windows#1

Open
rofrol wants to merge 3 commits intoBellk17:masterfrom
rofrol:master
Open

Fix: Type 'GraphQLType' is not assignable to type 'GraphQLOutputType'. module name on Windows#1
rofrol wants to merge 3 commits intoBellk17:masterfrom
rofrol:master

Conversation

@rofrol
Copy link
Copy Markdown

@rofrol rofrol commented Dec 27, 2016

No description provided.

let isMaybe = false
if (info_type instanceof GraphQLNonNull) {
info_type = info_type['ofType'];
//info_type = info_type['ofType'];
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

This would break the case of Non-Nullable Lists. info_type is assigned what GraphQLNonNull is wrapped around so further checks may be made.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm looking at rewriting this module in a purely functional manner with full test coverage / better configuration within the next month or so.

if (field.selectionSet) {
let isMaybe = false
if (info_type instanceof GraphQLNonNull) {
info_type = info_type['ofType']
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Same issue as above. Did you remove this due to an error or were you under the assumption it was vestigial?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I just wanted to get rid of errors first.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What is the error you were getting that this was causing?

Bellk17 pushed a commit that referenced this pull request Nov 27, 2017
@Jayshua Jayshua mentioned this pull request Jun 14, 2018
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