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

Possibility of using this API in an objective-c environment #1

Closed
unuigbee opened this issue Aug 21, 2016 · 6 comments
Closed

Possibility of using this API in an objective-c environment #1

unuigbee opened this issue Aug 21, 2016 · 6 comments

Comments

@unuigbee
Copy link

Currently I have an objective-c based project and i'd like use it in my project. I know I can't work with swift structs and enums (unless it's strictly of type int). So i'm wondering how would I go about using this API in my objective-c project?

@unuigbee
Copy link
Author

It's just a side project btw nothing major.

@stubailo
Copy link
Contributor

I think we started with Swift because the type system is more expressive. Some of these concepts could we used in Objective-C as well, but we would need to figure out how to work around some of the limitations of the system.

@unuigbee
Copy link
Author

unuigbee commented Aug 21, 2016

Yes Swift seems perfect for working with GraphQL queries and objective-c seems like a major handicap. I guess I might have to create strings composed of GraphQL queries and send it to the Apollo Server and then traverse the returned JSON data cries. I assume I'd have to send this query by POST to the graphQL endpoint.

@stubailo
Copy link
Contributor

Yeah, I mean it's not the end of the world though. Eventually we will definitely want to build a great code generation system for Obj-C as well, but we're doing one thing at a time.

@unuigbee
Copy link
Author

That's great to know. Thanks for taking the time to respond.

@martijnwalraven
Copy link
Contributor

Closing this, but note there has been some activity on adding an Objective-C target to apollo-codegen.

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

No branches or pull requests

3 participants