top | item 22122369

Show HN: An example GraphQL server written in Rust

74 points| biggestlou | 6 years ago |github.com | reply

15 comments

order
[+] AzzieElbab|6 years ago|reply
pretty cool. almost indistinguishable from implementation in higher level languages
[+] jillesvangurp|6 years ago|reply
Very nice. I played with and demoed something similar yesterday evening using Kotlin, Spring Boot and Expedia's graphql library at a meetup. Relative to things like Appollo, it is more convenient because it generates the schema using reflection, which means that after hooking up the schema generator, you can just write the same kind of code as normal and simply slap the Query or Mutation interface on the things you want exposed to graphql.

https://github.com/jillesvangurp/kotlin-graphql-demo

[+] biggestlou|6 years ago|reply
Yep, once you get the lower-level bits in place (which is still pretty tricky) you can iterate with confidence and surprisingly quickly. I created this project mostly to get people over the hump and into smoother sailing.
[+] nine_k|6 years ago|reply
I don't see how Rust is low-level. It allows easy access to low-level stuff, but it has quite powerful high-level features.
[+] hobofan|6 years ago|reply
With higher-kinded types on the long-term roadmap, I would definitely rank Rust as a high level language.
[+] uberman|6 years ago|reply
I saw "actix-web" and I thought to myself...

"That odd, that project is dead now. Why release something dependent on it?"

But then I went to the actix-web git repo and low and behold it is not dead.

Then scratching my head, I re-read this post from my history:

https://words.steveklabnik.com/a-sad-day-for-rust

Clearly stating the actix-web project was dead and I recall going to the link in the article to: https://github.com/actix/actix-web that had a post from the maintainer stating that the project was dead.

Anyone know what is going on with this project?

[+] cetra3|6 years ago|reply
Yes, the creator of actix-web has appointed a new maintainer after realising it was unfair to just up and delete it. The issue is here: https://github.com/actix/actix-web/issues/1289

The project future is obviously in flux with this transition, but I am hoping myself & other contributors will be able to carve a path forward.

[+] steveklabnik|6 years ago|reply
Thanks for the comment, I've now updated my blog post, so that when others run across this in the future, they'll see that it's living on.
[+] proc0|6 years ago|reply
I don't even use Rust and I reacted like the bitconnect guy, "Mmmm No no no".