Add important hint to documentation (#1149)

The documentation was missing a hint that the `AccessToken` ODM model has to be added to the `document_models` array argument for Beanie to know this model.
This commit is contained in:
Börge Kiss
2023-01-25 09:06:50 +01:00
committed by GitHub
parent 0e975c9b95
commit 9d374add50

View File

@@ -55,6 +55,8 @@ We'll expand from the basic Beanie configuration.
2. We define a dependency to instantiate the `BeanieAccessTokenDatabase` class. Just like the user database adapter, it expects the `AccessToken` model class we defined above.
Don't forget to add the `AccessToken` ODM model to the `document_models` array in your Beanie initialization, [just like you did with the `User` model](../../databases/beanie.md#initialize-beanie)!
### Strategy