dlbnco / tripby.org

Harm reduction info about psychoactive drugs with data provided by PsychonautWiki.org
https://tripby.org
23 stars 3 forks source link

Breaks when nullable key values are null #56

Closed 19h closed 5 years ago

19h commented 5 years ago

Bug report

Describe the bug

Site breaks when trying to iterate over a nullable key value that can be an array. No key value should be assumed non-nullable unless specified in the schema.

Example query: https://api.psychonautwiki.org/?query=query%7Bsubstances(query:%22Armodafinil%22)%7Bclass{psychoactive}%7D%7D

To Reproduce

Navigate to Armodafinil, Nitrous, et al.

Expected behavior

-

Screenshots

-

System information

-

Additional context

-