Skip to content

Conversation

@LeffelMania
Copy link

Addresses #2 and #3 - generates default __typename literals reflecting the type name from the schema.

@LeffelMania
Copy link
Author

Based on running this in Remind, this actually doesn't work I guess, specifically for Union types. For a union type including SomeType, we generate a struct called AsSomeType, but that's not the type name in the schema. Will have to dig a little deeper on that.

\(variableInputParamterCode)
\(variableInputParamterCode)\n
"""
Copy link
Member

Choose a reason for hiding this comment

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

since this is a multi-line literal, can simply add a real newline and it should work. also noticing variableInputParamterCode is spelled wrong 😬

Copy link
Member

Choose a reason for hiding this comment

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

#8

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.

3 participants