Can return GEOJSON objects using graphql into realm APP?

Hello.

Standard geojson has the coordinates type. That field could be array[float] or array[array[float]] or similar.

I have read about the problem with nested array and json schemas and graphql generation types.

I have read about write my own custom resolver, and my custom payload . So I did it. But I can not got the solution.

My custom resolver returns array of geojson objects, but when geometry typo is polygon, then coordinates must return array[array[array[float]]]

I try to write this at custom payload:


{
  "title": "nearPolygons",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "geometry": {
        "bsonType": "object",
        "properties": {
          "coordinates": {
            "bsonType": "array",
            "items": {
               "bsonType": "array",
                   "items": {
                              "bsonType": "double"
              }
          }
          },

But not success.

Is it possible to return a geojson object from graphql with realm ?