Create VulnerabilityLocationType to allow for structured location querying
The following discussion from !26136 (merged) should be addressed:
-
@alexkalderimis started a discussion: if I understand correctly, we are returning a serialized JSON object in the
location
field? Why would we do that, and not present the structured data?The entire point of GraphQL is to present strutured data where possible. We may need a new
LocationType
, and there is boilerplate involved with that, but I'd much prefer that to returning serialized JSON within a JSON response.
Each security report type has a different format for its location metadata. In order to structure that information for GraphQL it is necessary to determine whether that format is consistent for each report of the same type and create objects and types to represent that data.