django-restql icon indicating copy to clipboard operation
django-restql copied to clipboard

query not working on geojson

Open jmpmcmanus opened this issue 10 months ago • 0 comments

Hi = I have not able to query geojson data. Below is an example of geojson data: geojsonExample

When I run the query: http://localhost:8000/drf/api/pfas_in_tapwater_usgs/?query={properties{pfos,pfoa}}&format=json

it returns the following message: ["properties field is not found"]

I tested it on regular json data and it worked. Below is an example of regular json data I queried: jsonExample

I ran: http://localhost:8000/drf/api/ahhs_dust_data/?query={pfos_concentration,pfoa_concentration}&format=json

and it returned data. It was able to access the variables under results, but could not access the variables under features in the geojson case?

Thanks! Jim

jmpmcmanus avatar Apr 02 '24 17:04 jmpmcmanus