Difference between function and functionv2 while making api

While creating a database API, I noticed that the execution type dropdown has options for Function and Function v2. What is the difference between these two options?

Hi @Anuj_Tiwari
When creating a Database API, you have two options: function and functionV2. If you want the API response in a stringified format, you should use function. On the other hand, if you prefer the response in JSON format, you should opt for functionV2. The choice depends on your specific requirement for the response format.