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

Field set (group of fields) #117

Open
tshemsedinov opened this issue Apr 30, 2021 · 0 comments
Open

Field set (group of fields) #117

tshemsedinov opened this issue Apr 30, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@tshemsedinov
Copy link
Member

tshemsedinov commented Apr 30, 2021

Metaschema supports nested structures, but for database we need to unroll grouped fields into plain structure.

Refs: metarhia/metaschema#291

Example:

({
  login: { type: 'string', unique: true, length: 30 },

  fullName: {
    givenName: { type: 'string', required: false },
    middleName: { type: 'string', required: false },
    surname: { type: 'string', required: false },
  },

  birth: {
    birthDate: 'string',
    birthPlace: 'string',
  },
});
@tshemsedinov tshemsedinov added the enhancement New feature or request label Apr 30, 2021
@tshemsedinov tshemsedinov self-assigned this Apr 30, 2021
tshemsedinov added a commit that referenced this issue May 6, 2021
tshemsedinov added a commit that referenced this issue May 6, 2021
tshemsedinov added a commit that referenced this issue May 6, 2021
tshemsedinov added a commit that referenced this issue May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant