always validate geometries returned from api
This commit is contained in:
parent
3fe1e75c36
commit
7c58f06c60
6 changed files with 104 additions and 46 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue