Skip to content

Raw Data from generated models #3550

@oolabib

Description

@oolabib

Question

I've been using this tool for stubbing RESTful network requests in iOS.

Basic idea is: in the test I set the json to stub for a particular url.
I tried doing the same with apollo generated models, i.e. to set a stubbed response for a particular mutations. However, the passed objects should conform to NSCoding. I tried getting the raw data for the generated models or even the json but without any luck.

Can someone advice how can I achieve my goal

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that have a question which should be addressed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions