The API schema specifies that an array is returned for uncertainInteractions, unsafeInteractions, dangerousInteractions and effects. When only one item is returned by MediaWiki, a single item is returned instead of an array with a single item. As a result, the GraphQL API returns null due to type mismatch. Example: dangerous interactions of LSD.
Alternative considered: Remove call to _flattenIfNeeded()here. However, seems to cause too many issues with other properties.
The API schema specifies that an array is returned for
uncertainInteractions
,unsafeInteractions
,dangerousInteractions
andeffects
. When only one item is returned by MediaWiki, a single item is returned instead of an array with a single item. As a result, the GraphQL API returns null due to type mismatch. Example: dangerous interactions of LSD.Alternative considered: Remove call to
_flattenIfNeeded()
here. However, seems to cause too many issues with other properties.