Skip to content

Should not modify schema to add new relationshipsΒ #82

@rik-iso

Description

@rik-iso

Describe the bug

This prettier plugin modifies our schema to add new reverse relationships.

To Reproduce

Table A adds a relationship on table B.

Expected behavior

Nothing.

Experienced behavior

Table B gets a relationship added back to Table A.

Additional context

I get that this is useful in some cases, but a prettier plugin shouldn't be making those decisions for us. Furthermore, the reverse relationship that gets added isn't consistent in terms of casing/style with our other ones.

In our case, we don't want that reverse relationship adding because we don't have indexes on it so it would be an inefficient query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions