eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

225
active users

#GraphQL

0 posts0 participants0 posts today

I've been thinking about client-server interactions in the #fediverse. #ActivityPub #C2S isn't widely used, and most clients rely on Mastodon-compatible APIs instead.

What if we created a new standardized API based on GraphQL + Relay for client-server communication, while keeping ActivityPub for server-to-server federation?

The Mastodon-compatible API lacks formal schema definitions for code generation and type checking, which hurts developer productivity. And ActivityPub C2S is honestly too cumbersome to use directly from client apps.

#GraphQL would give us type safety, efficient data fetching (only get what you need), and the ability to evolve the API without breaking clients. #Relay's features for pagination, caching, and optimistic updates seem perfect for social apps.

Would this be valuable to our community? What challenges do you see? How might we handle backward compatibility? And should this be formalized as an FEP?

Curious what others think about this approach.

graphql.orgGraphQL | A query language for your API

It's crazy that `graphql-depth-limit` (with its Git repository removed and not being updated for 8 years) has 750k weekly downloads, while the actual `@graphile/depth-limit` library (updated, typed, from a GraphQL maintainer) has only 400 downloads.

Replied to 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?

Continued 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

Here are the slides from our talk, Decoupled #Drupal with #GraphQL and Gutenberg, which we presented with @dan2k3k4 at Drupal Mountain Camp 🏔️ mountain-camp-decoupled-gutenb

How to maintain a scalable and change-resilient architecture while ensuring great developer experience and smooth communication across your team and systems.

The same session will be held in #Lausanne this May, in French. Details coming soon.

mountain-camp-decoupled-gutenberg-graphql.vercel.appDecoupled Drupal with GraphQL and Gutenberg - SlidevA talk about communication and change\n

I was made redudant from my first #SoftwareEngineering job at a start up a few months back. I have been doing a couple of freelance jobs here and there but I prefer the stability of something more long term.
I am looking for a #remote position within Spain.
3 years experience as a web app #FullStackDeveloper in #javascript with #React #NextJS #MongoDB #GraphQL
I have a little experience with Vue and mySQL too.
Currently learning #Typescript and looking to start a web accessibility course in the summer.
I have been described as "product minded and user focused".

#GraphQL federation: what tools are there to handle the #supergraph schema composition? Is it unwise to try to pin some custom logic inside the query planning stage? If I need to do custom authorization remapping, where would that sit?

It looks to me as if #Apollo federation gateway is a subscription-only service that requires an outside online connection... Surely that can't be right? What am I missing?

Edit: found #WunderGraph and #HiveGateway as two other options. And we're being pushed towards #Azure APIM resolver as a temporary solution. This one feels iffy.

«GraphQL-Grundlagen-Tutorial:
GraphQL ist für viele Devs die erste Wahl, um effiziente, zukunftsfähige APIs zu entwickeln. So gelingen die ersten Schritte mit dem Open-Source-Tool.»

Nutzt dies wer im allgemeinen für Web-Produkte, sprich entwickelt damit Web-Apps die allgemein und nicht nur speziefisch nutzbar sind oder bestehen weiter viele auf REST API's? Ich entwickelte damit noch nie was.

🧑‍💻 computerwoche.de/article/28352

ComputerwocheGraphQL-Grundlagen-TutorialGraphQL ist für viele Devs die erste Wahl, um effiziente, zukunftsfähige APIs zu entwickeln. So gelingen die ersten Schritte mit dem Open-Source-Tool.

#spanishoddata #rstats is now 13 times faster to get basic origin-destination flows count at municipal level for a single day. All thanks to the new function that works directly with #GraphQL API of mapas-movilidad.transportes.go by Ministerio de Transportes y Movilidad Sostenible. See the time comparison below. Just 3-4 seconds you have the data! Previously it was almost a minute!

New tutorial on how to use this new function is here:

ropenspain.github.io/spanishod