Restored data_relation for nodes and node_types
This allows us to make queries to nodes and get information about their parent.
This commit is contained in:
parent
770838f0fc
commit
35dfbd71a2
@ -59,11 +59,11 @@ nodes_schema = {
|
|||||||
},
|
},
|
||||||
'parent': {
|
'parent': {
|
||||||
'type': 'objectid',
|
'type': 'objectid',
|
||||||
#'default': '',
|
'data_relation': {
|
||||||
#'data_relation': {
|
'resource': 'nodes',
|
||||||
# 'resource': 'nodes',
|
'field': '_id',
|
||||||
# 'field': '_id',
|
'embeddable': True
|
||||||
#},
|
},
|
||||||
},
|
},
|
||||||
'user': {
|
'user': {
|
||||||
'type': 'objectid',
|
'type': 'objectid',
|
||||||
@ -72,10 +72,11 @@ nodes_schema = {
|
|||||||
'node_type': {
|
'node_type': {
|
||||||
'type': 'objectid',
|
'type': 'objectid',
|
||||||
'required': True,
|
'required': True,
|
||||||
#'data_relation': {
|
'data_relation': {
|
||||||
# 'resource': 'node_types',
|
'resource': 'node_types',
|
||||||
# 'field': '_id',
|
'field': '_id',
|
||||||
#},
|
'embeddable': True
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'properties': {
|
'properties': {
|
||||||
'type' : 'dict',
|
'type' : 'dict',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user