Skip to content

boolean Type not casting truthy values #1991

@pappascd81

Description

@pappascd81

Environment

playground

Reproduction

Playground link.

Describe the bug

Hello there. When giving a field a boolean type in Pinia-ORM, it is not automatically casting the truthy value as expected given the documentation. 0 comes back at 0, null as null, etc.

Playground link just uses the basic playground example and prints the boolean value after selecting a user.

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions