Embedding Users
This commit is contained in:
@@ -249,7 +249,12 @@ def populate_node_types(old_ids={}):
|
|||||||
'attachments': {
|
'attachments': {
|
||||||
'type': 'list',
|
'type': 'list',
|
||||||
'schema': {
|
'schema': {
|
||||||
'type': 'objectid'
|
'type': 'objectid',
|
||||||
|
'data_relation': {
|
||||||
|
'resource': 'files',
|
||||||
|
'field': '_id',
|
||||||
|
'embeddable': True
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@@ -73,6 +73,11 @@ nodes_schema = {
|
|||||||
'user': {
|
'user': {
|
||||||
'type': 'objectid',
|
'type': 'objectid',
|
||||||
'required': True,
|
'required': True,
|
||||||
|
'data_relation': {
|
||||||
|
'resource': 'users',
|
||||||
|
'field': '_id',
|
||||||
|
'embeddable': True
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'node_type': {
|
'node_type': {
|
||||||
'type': 'objectid',
|
'type': 'objectid',
|
||||||
|
Reference in New Issue
Block a user