I am working on a map visualization where I query locations and plot them. However, some of the items to be mapped currently have some null
values for longitude
and latitude
. I am aware that I will eventually have to correct those, but until then.
Until this, what is the best way to "filter" these results out from the GraphQL query so that I do not get any errors when mapping the locations? Should this be accomplished in the graphql-schema.js
file? Or should this be done when queried React Map Component?