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:

221
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?

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

Good progress on the #dweb REST APIs and improvements to the #OpenAPI docs today, all with the help of #actix and #utoipa

BTW #SwaggerUI is really cool

A few days ago I knew nothing about these but now I have a working API that is documented and can be tested live while reading those docs.

Someone asked if I might support #GraphQL but I haven't looked into that. Convince me that I should!

#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.

📰 [News] Agoda’s Unconventional Client-First Transition from a GraphQL Monolith to Microservices by Eran Stiller

🔗 bit.ly/3ZoB7Tv

Agoda described its approach to transitioning from a monolithic GraphQL API to a microservices architecture. Agoda adopted a client-first strategy, preparing its client apps to handle the monolith and the microservices in parallel using an in-house smart orchestrator library.

📰 [News] Microsoft Announces General Availability of Fabric API for GraphQL by Robert Krzaczyński

🔗 bit.ly/49aVjvG

Microsoft has launched Fabric API for GraphQL, moving the data access layer from public preview to general availability. This release introduces several enhancements, including support for Azure SQL and Fabric SQL databases, saved credential authentication, detailed monitoring tools, and integration with CI/CD workflows.

#SQL#NoSQL#GraphQL