ent / ent/ent

Ability to add additional fields without custom templates.

Open
#3,833 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
17.2k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Hello,
https://entgo.io/docs/schema-fields#additional-struct-fields is not so handy to use and is not explicit, it would be great to have ability to create additional fields right in schema.

- [x] I have searched the [issues](https://github.com/ent/ent/issues) of this repository and believe that this is not a duplicate.

## Summary 💡
I suggest adding an annotation, with name like field.NoStorage() or field.Additional().

## Motivation 🔦
It would be way more easy to deduce for new project developers how this additional field appeared in schema they look at.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.