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

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

Merged

Conversation

shadaj
Copy link
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
Member

@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 👍

packages/apollo-codegen-scala/src/language.ts Show resolved Hide resolved
@shadaj
Copy link
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
Member

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.

None yet

2 participants