You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently content items for non-withdrawn editions will include an empty
object for the `withdrawn_notice`. We opted to return `nil` instead,
which feels more conventional (for APIs in general) and is also the
[recommended way of doing things in GraphQL][1]. Implementing an empty
object in GraphQL requires some fairly [hacky code][2]. We'll need to
ensure that consumers can handle this field being `nil` before any move
to use the GraphQL endpoint in production
[1]: https://spec.graphql.org/draft/#sel-HAHZhCFBABPBT5pS
[2]: graphql/graphql-spec#568 (comment)
Co-authored-by: George <[email protected]>
0 commit comments