Pass WriteContext recursively through flatten function.
Pass WriteContext recursively through flatten function.

https://github.com/apollographql/apollo-client/pull/8951#discussion_r733134077

apollographql/apollo-client,apollographql/apollo-client