-
Notifications
You must be signed in to change notification settings - Fork 72
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
JSON result #1
Comments
Hello! The let result = try graphql(schema: StarWarsSchema, request: query)
print(result.description) example output: {
"data": {
"hero": {
"name": "R2-D2"
}
}
} In debug mode it will pretty print the JSON string. In release mode it will print a minified version. |
Just so you know I released Graphiti. Which is a swiftier DSL to create your types/schemas. |
More news! Just released GraphQLResponder. It's a Zewo responder (kinda like a middleware) with GraphiQL support included. 😊 |
ping! |
For me it returns:
In those |
Graphiti looks good, I am currently starting a new web project in Swift and deciding between Vapor and Zewo. It would be awesome if |
@zdenektopic - this might help https://github.com/utahiosmac/Marshal |
I think it should support it out-of-box. I dont need mapping to object, I just need to get simple dictionary. |
Hi,
I am having trouble converting returned Map object to JSON. There seems to be no method to simply convert the result to simple dictionary convertible to JSON or any other obvious way.
Or at least simple string valid as HTTP response body.
The text was updated successfully, but these errors were encountered: