d-pac / restful-keystone

Automatic RESTful API enabler for KeystoneJS
MIT License
160 stars 50 forks source link

POST Types.Location #20

Open Reedyuk opened 8 years ago

Reedyuk commented 8 years ago

Hi, I couldnt find this anywhere, but is there an example POST request of an object that contains the Location type. Preferably the GEO, for example, i am trying in my post request: field: location.geo value: [-0.2241442,51.4939545]

The response i get back is: "number Cast to number failed for value [-0.2241442,51.4939545] at path location.geo"

This says to me that the location is trying to convert the array into a number, but surely its expecting two numbers? lat and long.