Open georgolden opened 2 years ago
@lundibundi I think it is better to create another schema rather then mixin into existing one. What do you think?
And how to deal with conflicts if 2 schemas have same field with different type? Error throw?
npm ci
to install depsfeature/concat-schemas
Requirements.
Schema.concat(...schemas )
returns new Schema that contains fields from 2 schemas.I'd like to take this one
@lundibundi please edit
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
User { name: 'string' } => User { name: 'string', age: 'number', fullName: 'string' }
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.