-
Notifications
You must be signed in to change notification settings - Fork 721
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
Make parseResult public again #46
Make parseResult public again #46
Conversation
@fwal: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/ |
I'd like to better understand your use case. Which part of your app calls Maybe you could also chime in on #6? |
I'm a little hesitant to make What do you think? |
@martijnwalraven Parsing the result ourselves would require implicit knowledge of implementation details (such as that the main body is under the Also, if let dataEntry = body["data"] as? JSONObject {
let reader = GraphQLResultReader(variables: operation.variables) { field, object, info in
return (object ?? dataEntry)[field.responseName]
}
data = try Operation.Data(reader: reader)
} |
@martijnwalraven Thanks! And yes, of course, I'm working on a second integration from our end currently (using ApolloClient) and will get back to you with some thoughts based on that. |
Great! I'm also in the process of writing some API documentation, so that may also help. |
We currently use Apollo as de-/serialiser for our graphql requests within our pre-existing network stack and it works really well.
We used this method for achieving this but it was recently made internal.