S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What is the purpose of the `Depends` function in FastAPI?

  • (A) Render HTML templates
  • (B) Send email notifications
  • (C) Declare dependencies
  • (D) Connect to database
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Fast API
  • Hashtags:

Explanation by: Shyam Dubey
`Depends` is used to declare and inject dependencies into path operations.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.