codemix / codemix/modeling

nested models

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
15
Forks
1
PR merge metrics
No merged PRs in 30d

Description

hey, i stumbled on `modeling` and i like how it looks. :)

is there a way to use a model in another model?

possible syntax that might already work:

```
var Address = Modeling("Address", {
street: {
label: 'Street',
description: 'The name of the street',
type: 'string',
rules: [
['required']
],
},
...
});

var Person = Modeling("Person", {
address: {
type: Address,
},
...
});
```

if this does already work, can we add it to the documentation?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.