nrw.social ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Wir sind eine freundliche Mastodon Instanz aus Nordrhein-Westfalen. Ob NRW'ler oder NRW-Sympathifanten, jeder ist hier willkommen.

Serverstatistik:

2,8 Tsd.
aktive Profile

#GraphQL

2 Beiträge2 Beteiligte0 Beiträge heute
Antwortete thezerobit

@thezerobit interesting, thanks. I recently began building my first REST API so learning, learning, learning and have GraphQL on my list to look into.

No reason I can't offer both at least in the short term so your comments are welcome.

One issue I guess is the level of support, esp for a novice.

I found a actix + utoipa have helped a lot as I'm coding on a Rust backend. Do you know if there are similar tools to help with #GraphQL+ #Rustlang?

Fortgeführter Thread

GraphQL allows you to send multiple queries in a single request. This is just an obvious upgrade over REST. No contest.

Only get the fields you need sent over the wire. Again, a huge improvement over REST. Also, no contest.

It's so much more flexible than REST. The next time I'm asked to build a REST API at a company, I will gently suggest that we start with GraphQL.

For Python users, the Strawberry library is great. Makes it real nice and simple to build GraphQL endpoints.

n/n

I've been immersed in GraphQL recently. You know, it's pretty great, actually. Are there issues? Yeah. It's impossible to design a system like this perfectly. Yeah, maybe it was made by "Facebook", but in reality it was made by engineers who worked at Facebook and is controlled by a neutral non-profit. It's does a few things *extremely* better than REST: change/versioning, pulling multiple related or unrelated bits of data in a single request, and only sending the fields you need.

1/n