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

Public initializers for auto-generated code #52

Closed
amol-c opened this issue Feb 6, 2017 · 1 comment
Closed

Public initializers for auto-generated code #52

amol-c opened this issue Feb 6, 2017 · 1 comment
Labels
enhancement Issues outlining new things we want to do or things that will make our lives as devs easier

Comments

@amol-c
Copy link

amol-c commented Feb 6, 2017

Hi,

Can we have public initializers for auto-generated code.

It becomes very tedious to write unit test and creating Mocks for the models.

Based off of the discussion here.

#49

Thanks.

@martijnwalraven martijnwalraven added the enhancement Issues outlining new things we want to do or things that will make our lives as devs easier label Feb 7, 2017
@martijnwalraven
Copy link
Contributor

You'll be happy to hear we just released Apollo iOS 0.6.0-beta.1, which includes memberwise initializers (or type-specific factory methods) for generated models. Make sure to use npm install -g apollo-codegen@next until it is out of beta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues outlining new things we want to do or things that will make our lives as devs easier
Projects
None yet
Development

No branches or pull requests

2 participants