Skip to content

Declaring the base User using Beanie #1217

Closed Answered by frankie567
FabienLariviere asked this question in Q&A
Discussion options

You must be logged in to vote

Since V11, User need to inherit from Beanie's Document explicitly. Besides, it's not a generic anymore. So it looks like this:

class User(BeanieBaseUser, Document):
    pass

Ref: https://fastapi-users.github.io/fastapi-users/11.0/configuration/databases/beanie/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@FabienLariviere
Comment options

Answer selected by FabienLariviere
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants