Controlling Serialisation of CosmosDB Bindings for Azure Functions

While preparing the content for the live stream I did today I came across a problem with how the data in CosmosDB was being handled. The sample data set I was using was using camel-case for the field names, such as correctAnswer and incorrectAnswer, wh…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

While preparing the content for the live stream I did today I came across a problem with how the data in CosmosDB was being handled. The sample data set I was using was using camel-case for the field names, such as correctAnswer and incorrectAnswer, while the casing on the F# record types was pascal-case (CorrectAnswer and IncorrectAnswer), and this was causing problems in the serialisation/deserialisation of the data. Since I was using the input and output bindings for CosmosDB I don’t control the serialisation/deserialisation of the data, so how do we get around this?


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate Updates
APA

Posts on LINQ to Fail | Sciencx (2021-07-09T04:29:50+00:00) Controlling Serialisation of CosmosDB Bindings for Azure Functions. Retrieved from https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/

MLA
" » Controlling Serialisation of CosmosDB Bindings for Azure Functions." Posts on LINQ to Fail | Sciencx - Friday July 9, 2021, https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/
HARVARD
Posts on LINQ to Fail | Sciencx Friday July 9, 2021 » Controlling Serialisation of CosmosDB Bindings for Azure Functions., viewed ,<https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Controlling Serialisation of CosmosDB Bindings for Azure Functions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/
CHICAGO
" » Controlling Serialisation of CosmosDB Bindings for Azure Functions." Posts on LINQ to Fail | Sciencx - Accessed . https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/
IEEE
" » Controlling Serialisation of CosmosDB Bindings for Azure Functions." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/. [Accessed: ]
rf:citation
» Controlling Serialisation of CosmosDB Bindings for Azure Functions | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2021/07/09/controlling-serialisation-of-cosmosdb-bindings-for-azure-functions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.