INTERFACE

RelationOnDemandInterface

# GraphQL Schema definition

1interface 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
12related_model(
13foreign_property: String,
14join_on_property: String,
15model_schema_name: 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
28related_models(
29foreign_property: String!,
30join_on_property: String!,
31model_schema_name: [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]
39related_user(foreign_property: String, join_on_property: String): User
 
40}

# Required by