Skip to content

v0.0.9

Choose a tag to compare

@bigrivi bigrivi released this 25 Mar 10:24
· 19 commits to main since this release

Added

  • query filter support lambda function,it can realize the purpose of query condition transformation
@crud(
    user_router,
    feature="user",
    query={
        "filter": lambda x: {"$and": [*x["$and"], {
            "is_active": True,
        }]}
    },
    serialize={
        "base": UserPublic,
    }
)