Fork me on GitHub

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.


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


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


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

šŸ˜Ž 4

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