Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using NetTopologySuite.Geometries;
using static HotChocolate.Types.Spatial.Properties.Resources;
using static HotChocolate.Types.Spatial.WellKnownFields;
using static HotChocolate.Types.Spatial.WellKnownTypeNames;

namespace HotChocolate.Types.Spatial;
Expand All @@ -16,8 +17,10 @@ protected override void Configure(IObjectTypeDescriptor<MultiLineString> descrip
.BindFieldsExplicitly();

descriptor
.Field(x => x.Coordinates)
.Description(GeoJson_Field_Coordinates_Description_MultiLineString);
.Field<GeoJsonResolvers>(x => x.GetGeometryCollectionCoordinates(null!))
.Name(CoordinatesFieldName)
.Description(GeoJson_Field_Coordinates_Description_MultiLineString)
.Type<ListType<ListType<GeoJsonPositionType>>>();

descriptor
.Field<GeoJsonResolvers>(x => x.GetType(null!))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,36 @@
"type": "MultiLineString",
"coordinates": [
[
10,
10
[
10,
10
],
[
20,
20
],
[
10,
40
]
],
[
20,
20
],
[
10,
40
],
[
40,
40
],
[
30,
30
],
[
40,
20
],
[
30,
10
[
40,
40
],
[
30,
30
],
[
40,
20
],
[
30,
10
]
]
],
"bbox": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface GeoJSONInterface {

type GeoJSONMultiLineStringType implements GeoJSONInterface {
"The \"coordinates\" field is an array of LineString coordinate arrays."
coordinates: [Position]
coordinates: [[Position]]
"The geometry type of the GeoJson object"
type: GeoJSONGeometryType!
"The minimum bounding box around the geometry object"
Expand Down
Loading