With 'parent' and 'relation' statement, we can define a kind of 'belongs_to' association. We often get 'child' resources for visualizing when querying some resources but currently there is no way to get child resources.
To enhance usability of querying data, schema description should allow to define associations like has_one and has_many. Example schema is as follows:
With 'parent' and 'relation' statement, we can define a kind of 'belongs_to' association. We often get 'child' resources for visualizing when querying some resources but currently there is no way to get child resources.
To enhance usability of querying data, schema description should allow to define associations like has_one and has_many. Example schema is as follows:
'Child' resources should have foreign_key for parent resource which is created automatically.