always validate geometries returned from api

This commit is contained in:
Paul Chavard 2020-10-08 16:02:52 +02:00
parent 3fe1e75c36
commit 7c58f06c60
6 changed files with 104 additions and 46 deletions

View file

@ -14,7 +14,7 @@ module Types
global_id_field :id
field :source, GeoAreaSource, null: false
field :geometry, Types::GeoJSON, null: false
field :geometry, Types::GeoJSON, null: false, method: :safe_geometry
definition_methods do
def resolve_type(object, context)