Skip to content

counts should be optional #116

@HoffmannLuca

Description

@HoffmannLuca

when i use the following config, it generates types with countRelation attributes
'no-counts' => false,

but these attributes should be optional because i dont always load counts for a model

example:
`export interface User {
// columns
id: number;

// relations
Role?: Role[];

// counts
roleCount: number;  //<--- this should have a ? like so (roleCount?: number;)

}
`

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