Skip to main content

Questions tagged [graphql]

For questions about GraphQL, an API technology designed to describe the complex, nested data dependencies of modern web applications.

1 vote
2 answers
572 views

I just started learning about the specification, but I still have some doubts about why GraphQL simply hasn't replaced REST since it was created. REST APIs are very inflexible and straightforward. ...
Sami Daniel's user avatar
0 votes
1 answer
185 views

CreateCustomer is clearly a mutation. GetCustomer is clearly a query. But what would be some CalculateProductPriceForThisAmazingCustomer? Is it a query, because no price is stored (no data written), ...
avj's user avatar
  • 111
1 vote
1 answer
2k views

I may be overthinking it, but are controllers and resolvers the same thing in web applications? Coming from the MERN stack, everyone used to call these request processing functions "controllers,&...
twominds's user avatar
  • 129
4 votes
3 answers
6k views

I'm struggling with defining proper endpoints for a RESTful API, given the following requirements: We have an existing /customers endpoint, which when called with the GET verb, returns a list of ...
Alex's user avatar
  • 151
1 vote
1 answer
478 views

Background In the scenario GraphQL Federation was designed for, you have numerous GraphQL microservices in the backend, each with their own Schema Definition Language (SDL). Theoretically, these ...
Anchor's user avatar
  • 203
10 votes
2 answers
3k views

We currently have an application with various frontends, a backend with a python tornado server, MongoDB and a "REST" API (that isn't very RESTful) so are looking to update to a version 2. A ...
wobbily_col's user avatar
  • 1,891
1 vote
1 answer
533 views

How does server-server communication compare to client-server communication? I'm wondering if there are any performance benefits when putting a GraphQL layer in between my client-side app and my rest-...
wheresmyspaceship's user avatar
1 vote
0 answers
131 views

I am trying to find the best way for a microservice to communicate with GraphQL Basic scenario: Client subscribed to GraphQL via Subscriptions (WebSockets) Client creates an Item using Mutation which ...
inside's user avatar
  • 111
-3 votes
2 answers
345 views

I am developing a multi-tenant project that will be a kind of micro "ecommerce" and therefore customers will be able to create their own stores and will be able to choose between creating a ...
João Silva's user avatar
4 votes
0 answers
417 views

I'm building a todo list app and using react-beautiful-dnd on the frontend to allow users to reorder tasks. I'm trying to work out how to persist changes to the database when a user reorders items. ...
mrseanbaines's user avatar
-1 votes
1 answer
411 views

I recently had to optimize my graphql API server by selecting only specific fields from the database before returning the actual result to the client. For example, let's say my graphql schema has the ...
Yos's user avatar
  • 167
1 vote
0 answers
54 views

Solution as it is right now I have this solution where I gather information from a proprietary product of a different company in various sites. The solution is based on a single go binary that ...
Marged's user avatar
  • 235
4 votes
1 answer
744 views

Here is where I am at right now: I know that relational data, like that found in relational databases like MySQL or Postgres, is relational because there are relations between the tables. That is the ...
IchBinGrumpig's user avatar
1 vote
4 answers
231 views

I'm currently working on a project which is build as a microservice architecture. We have one "Gateway" which aggregates the data coming from the different microservices to return one aggregated ...
Michael Schulz's user avatar
0 votes
1 answer
377 views

I am investigating a good maintainable architecture for GraphQL. In particular we want to migrate a REST app to GraphQL. Specifically I am using .NET. I am following the tutorial here: https://...
k29's user avatar
  • 109

15 30 50 per page