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

Update sample app withe the latest changes to compiler #163

Merged
merged 6 commits into from
Feb 6, 2017

Conversation

sav007
Copy link
Contributor

@sav007 sav007 commented Feb 6, 2017

No description provided.

@sav007 sav007 assigned sav007 and unassigned sav007 Feb 6, 2017
@@ -31,10 +32,12 @@
.baseUrl(BASE_URL)
.client(okHttpClient)
.addCallAdapterFactory(RxJava2CallAdapterFactory.create())
.addConverterFactory(new ApolloConverterFactory.Builder().build())
.addConverterFactory(new ApolloConverterFactory.Builder()
.withResponseFieldMapper(FeedQuery.Data.class, new FeedQuery.Data.Mapper(FeedQuery.Data.FACTORY))
Copy link
Contributor

Choose a reason for hiding this comment

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

so sorry could you explain this line again. Will we need to register every object or is this for a particular custom field

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes user must provide Mapper instance for each query top level Data class. Converter then will use it to parse query response. So basically number of queries == number of mapper registrations

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We will need to update readme in next release

@digitalbuddha
Copy link
Contributor

digitalbuddha commented Feb 6, 2017 via email

@sav007 sav007 merged commit 5de2144 into apollographql:master Feb 6, 2017
@sav007 sav007 deleted the bug/fix-sample-app branch February 6, 2017 22:19
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