How to show _extraFields data out of "items{}"

Hi, i was using GeoFields and I saw that I had to use “extrafields”, the way that it shows the data is a little complicated to access


The only way that I can access to “_extraFields” is putting it inside “items”.
I want to put it’s result inside “group”, in this case at the same level as “fKBusinessesToBranchOffices -> Group”

Is there any way to do this?

Hello Jefferson!

I’ll give you a response soon. Sorry about the long wait.

Lada Kokotova | Technical Support Engineer

Unfortunately you can’t get _extraFields not from items. All queries and responses are strictly defined in the GraphQL schema.

That’s why you can’t put _extraFields inside “group”.

Lada Kokotova | Technical Support Engineer

So, how can I sort depending in the response of “_extraField”, I can’t find a way to sort the results based on this result

Here’s an example of how you can sort the results:

query {
  tableNameList(
    extraFields:{
     name:{
      as:"Test"
        fn:{
          distance:{
            from:{
              type: Point
              coordinates: [43.5, 13.6]
            }
            
          }
        }
      }
    }
    sort:{_extraField:{alias:"Test", direction: DESC}}){
    items{
      id
      _extraFields{
        Test:Float}
    }
  }
}

Please let me know if you have any questions.

Lada Kokotova | Technical Support Engineer