0

I am using the Azure Functions SQL Extension.

I have an endpoint with the following parameters (documentation).

"parameters": "@Limit={Query.limit},@Status={Query.status}",

Does anyone know whether it's possible to assign default/null values to Query parameters? E.g. if i don't specify status in my HTTP query string i want it to be null.

Currently it fails with the message:

Error while accessing 'status': property doesn't exist

1 Answer 1

1

There is no way to set default values. Here are alternatives you could consider

  1. If using C#, then you can Bind at Runtime
  2. Use a separate HTTP function that would call the function with the SQL binding after validating and setting defaults. You could even consider Durable Functions here, if it makes sense for your scenario
  3. Directly use the SQL SDK
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.