Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "meta" field property for tagging support #25

Open
gabipetrovay opened this issue Nov 14, 2013 · 0 comments
Open

Add "meta" field property for tagging support #25

gabipetrovay opened this issue Nov 14, 2013 · 0 comments

Comments

@gabipetrovay
Copy link
Contributor

We want to add a meta field that will

taggedField: {
    type: "string",
    required: true,
    meta: true,
    labe: "Uau! A field with tagging support"
}

Such a meta option, must enable the following logic in crud and modm:

  • an item that has at least one meta field, will have a _mt core schema property (on the same level with _li and _tp) which is a set (i.e. no duplicates) of lower-cased, trimmed strings. For example: _mt: ["value_from_field_1", "value_from_field_2"]
  • on every create and update, AND if a meta field is involved, we must rebuild the _mt to avoid gathering trash in it and to gather the new values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants