I checked the article and for the section Modify your code :
The Version 4 update for the Azure Functions Cosmos DB extension leverages the Azure Cosmos DB .NET SDK Version 3, which no longer supports the Document class. This change means that instead of getting a list of Document objects that you need to deserialize into your custom types with each function call, you can now directly obtain a list of your specific object type.
The example shows that you need to apply the changes to the attribute names must be made directly in the code when defining your Function.