Skip to content

Improve Scala codegen to make results feel more like case classes#943

Merged
trevor-scheer merged 2 commits intoapollographql:masterfrom
shadaj:scala-codegen-case-class-like
Feb 5, 2019
Merged

Improve Scala codegen to make results feel more like case classes#943
trevor-scheer merged 2 commits intoapollographql:masterfrom
shadaj:scala-codegen-case-class-like

Conversation

@shadaj
Copy link
Copy Markdown
Contributor

@shadaj shadaj commented Jan 30, 2019

The change to use traits left some codebases pretty source incompatible, as they depended on APIs that are automatically generated for case classes. This adjusts the codegen to generate similar APIs so that query results have the feel of being case classes without the performance overhead.

@shadaj shadaj changed the title Improve Scala codegen to make data containers feel more like case classes Improve Scala codegen to make results feel more like case classes Jan 30, 2019
Copy link
Copy Markdown
Contributor

@trevor-scheer trevor-scheer left a comment

Choose a reason for hiding this comment

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

LGTM!

We're back to keeping up the changelog, so if you don't mind adding an entry for apollo-codegen-scala in the Upcoming section that would be awesome. Thanks!

Caveat: I don't know Scala. Once you resolve my one little question I'll merge and publish 👍

Comment thread packages/apollo-codegen-scala/src/language.ts
@shadaj
Copy link
Copy Markdown
Contributor Author

shadaj commented Feb 1, 2019

Huh, the Azure tests are failing now, but seems unrelated to the changes in this PR.

@trevor-scheer
Copy link
Copy Markdown
Contributor

Re-ran the pipeline, looks like we're good. I'll merge this in the morning. Thanks again!

@shadaj shadaj force-pushed the scala-codegen-case-class-like branch from 60532be to 935109b Compare February 4, 2019 23:55
@trevor-scheer trevor-scheer merged commit ce673cd into apollographql:master Feb 5, 2019
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