Hi all,
We have a problem that I am wondering how other people solve. E.g. you have two services, let’s say a Search and a Post service, where Post decorates Search.
Search
@key post.id
SearchResult {
post: [Post!]!
}
Post
Post {
id: ID! @key
subject: String
body: String
Now the Search returns a list of ids, that need to be decorated by the Post service. However lets say for some reason an error is returned on one of the Post entities, how do you deal with that? You would still need to return the Post entity, but now just with a uri and a error in the errors field? How do others deal with decoration errors? In an ideal world, I would prefer to filter out the failing Post entity, however this is not possible because it is already setup in the list and from the Post service I cannot filter it out.
Any ideas? Whats a proper approach here?
Thanks,
Kenneth