Fork me on GitHub
#graphql
<
2019-06-13
>
donaldball21:06:38

Iā€™m working to express the results of joins across multiple data sources in my graphql schema and was idly wondering if there were any useful ways folk have found to express the temporary unavailability of parts of the data graph? We would like graphql to abstract over disparate backend databases and also be able to provide partial responses when possible, but it seems like there should be a good way to inform clients of the distinction between the absence of and the unavailability of data.

3Jane21:06:43

Yeah, we do exactly that (abstracting over disparate backends which are sometimes flakey)

3Jane21:06:03

In terms of graphql response, you can return an error and a partially filled response, with a null for the object where the flakey data would normally go

3Jane21:06:54

The other thing you can use is the extensions field in response

šŸ˜Ž 4
osi22:06:45

the UI engineers I work with prefer that over crawling through other parts of the response structure