INTERFACE
RelationOnDemandInterface
# GraphQL Schema definition
1 interface RelationOnDemandInterface { 2 # Defines belongs-to relation with other model; ex: parent: model(model_name: 3 # "parent", join_on_property: "parent_id") { id } 4 # 5 # Arguments 6 # foreign_property: Load resources with foreign_property == 7 # join_on_property 8 # join_on_property: Load remote resource with id == 9 # join_on_property 10 # model_schema_name: Joins model [formaly customization] with 11 # custom-model-type-name == model_name 12 ( 13 String, : 14 String, : 15 String : 16 ): ListingsCustomization 17 # Defines has-many relation with other model, returns maximum of 10000 records at 18 # once; ex: children: models(model_name: "child", join_on_property: "parent_id", 19 # foreign_property: "parent_id") { id } 20 # 21 # Arguments 22 # foreign_property: Load resources with foreign_property == 23 # join_on_property 24 # join_on_property: Load resources with foreign_property == 25 # join_on_property 26 # model_schema_name: Joins model [formaly customization] with 27 # custom-model-type-name == model_name 28 ( 29 String!, : 30 String!, : 31 String] : [ 32 ): [ListingsCustomization!] 33 # Defines relation with other user, returns maximum of 10000 records at once; ex: 34 # invited_by: user(join_on_property: "invited_by_id") { id } 35 # 36 # Arguments 37 # foreign_property: [Not documented] 38 # join_on_property: [Not documented] 39 String, : String): User ( : 40 }