]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Update dependencies docs
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 15 Dec 2018 14:56:07 +0000 (18:56 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sat, 15 Dec 2018 14:56:07 +0000 (18:56 +0400)
docs/tutorial/dependencies/first-steps.md
docs/tutorial/dependencies/second-steps.md

index 76a80c27bbd74862d389016910e45815e148342b..40f4f588b4b593908e557ae027640456f25d21c6 100644 (file)
@@ -76,7 +76,7 @@ And you can declare dependencies with `async def` inside of normal `def` path op
 It doesn't matter. **FastAPI** will know what to do.
 
 !!! note
-    If you don't if you should use `async def` or not, check the section about [`async` and `await` in the docs](async.md).
+    If you don't if you should use `async def` or not, check the section about [`async` and `await` in the docs](/tutorial/async.md).
 
 ## Integrated wiht OpenAPI
 
index 04d68d9ef9c1c21e5294a3a53bf1060eac5d4108..ef673eba246c26c8ac00802f0b0d24e5f743ba67 100644 (file)
@@ -61,6 +61,12 @@ And now we can use that model in our code, with all the lovable editor support:
 
 <img src="/img/tutorial/dependencies/image02.png">
 
+## Trees of hierarchical dependencies
+
+With the **Dependency Injection** system you can build arbitrarily deep trees of hierarchical dependencies (also known as dependency graphs) by having dependencies that also have dependencies themselves.
+
+You will see examples of these dependency trees in the next chapters about security.
+
 ## Recap
 
 By using Pydantic models in your dependencies too you can keep all the editor support that **FastAPI** is designed to support.
\ No newline at end of file