From 31f0b9b98d6f4b5e4d25a209d5fb03ae5804cc77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alberto=20Miedes=20Garc=C3=A9s?= Date: Fri, 30 Sep 2016 11:28:16 +0200 Subject: [PATCH] Created graphql geozone_type --- app/graph/types/geozone_type.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/graph/types/geozone_type.rb diff --git a/app/graph/types/geozone_type.rb b/app/graph/types/geozone_type.rb new file mode 100644 index 000000000..fc4bb2343 --- /dev/null +++ b/app/graph/types/geozone_type.rb @@ -0,0 +1,10 @@ +GeozoneType = GraphQL::ObjectType.define do + name "Geozone" + description "A geozone entry, returns basic geozone information" + # Expose fields associated with Geozone model + field :id, types.ID, "The id of this geozone" + field :name, types.String, "The name of this geozone" + field :html_map_coordinates, types.String, "HTML map coordinates of this geozone" + field :external_code, types.String, "The external code of this geozone" + field :census_code, types.String, "The census code of this geozone" +end