Skip to content

requiredAttrs is using partial #11

@mmahalwy

Description

@mmahalwy

I noticed that requiredAttrs is using a partial. The problem is it doesnt reflect the required attrs that .create({ data: {} }) has and wont be caught by TS. For example, if column name is required, prisma.user.create() would catch it but the factory would not. Suggestion is to remove partial but remove associations (still trying to figure out a way to do that)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions