Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-14-2021 12:03 PM
Greetings,
Apologies if this is captured elsewhere, please redirect me.
Using Neo4j Community 3.5.6
I have input form fields in my app that capture separate, decimal longitude and latitude values...
<input type="number" min="-180" max="180" step=.000001 value="" />
The query I'm using to post the data is this...
Create(bry:Brewery {latitude: $latParam, longitude: $lngParam, address: $formatted_addressParam})
I would expect Neo4j to capture the lat lon data type as a float? but instead these are being posted as a string. How do I
Many Thanks,
keith
Solved! Go to Solution.
04-14-2021 12:08 PM
04-14-2021 12:08 PM
04-14-2021 12:19 PM
Ah ok, thank you Cobra, so I can specify toFloat in the Create statement. The create statement forcing this data type of float doesn't seem to be documented anywhere? Or is there documentation for this?
04-14-2021 12:35 PM
I gave the link to the doc of toFloat but there is only that
04-14-2021 02:42 PM
You bet, yea I saw that thank you, helpful for converting, but not very helpful for establishing a data type on creation. I am very thankful for 'tribal knowledge' discussions like this since Neo4j has many gaps in documenting practices like this.
All the sessions of the conference are now available online