HasModelsInterface
No description
interface HasModelsInterface {
model(
filter: ModelsFilterInput
foreign_property: String = "id"
join_on_property: String!
model_name: [String]!
sort: [ModelsSortInput!]
): Model
models(
foreign_property: String!
join_on_property: String!
limit: Int
model_name: [String]!
sort: [ModelsSortInput!]
): [Model!]
related_model(
filter: ModelsFilterInput
foreign_property: String = "id"
join_on_property: String!
model_schema_name: [String]!
sort: [ModelsSortInput!]
): Model
related_models(
filter: ModelsFilterInput
foreign_property: String!
join_on_property: String!
limit: Int
model_schema_name: [String]!
sort: [ModelsSortInput!]
): [Model!]
related_user(
filter: ModelsFilterInput
foreign_property: String = "id"
join_on_property: String = "user_id"
sort: [UsersSortInput!]
): User
related_users(
filter: ModelsFilterInput
foreign_property: String!
join_on_property: String!
limit: Int
sort: [UsersSortInput!]
): [User!]
user(
foreign_property: String = "id"
join_on_property: String = "user_id"
sort: [UsersSortInput!]
): User
users(
foreign_property: String!
join_on_property: String!
limit: Int
sort: [UsersSortInput!]
): [User!]
}
Fields
model (Model)
Defines has-one relation with other model, e.g: children: models(model_name:
"child" join_on_property: "parent_id" foreign_property: "parent_id") { id }
-
filter(ModelsFilterInput) -
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
-
model_name(String)
Joins model [formaly customization] with model-schema-name == model_name
-
sort(ModelsSortInput)
models (Model)
Defines has-many relation with other model; ex: children: models(model_name:
"child", join_on_property: "parent_id", foreign_property: "parent_id") { id }
-
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
Joins model [formaly customization] with model-schema-name == model_name
-
sort(ModelsSortInput)
related_model (Model)
Defines has-one relation with other model; ex: children: models(model_name:
"child" join_on_property: "parent_id" foreign_property: "parent_id") { id }
-
filter(ModelsFilterInput) -
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
-
model_schema_name(String)
Joins model [formaly customization] with model-schema-name == model_schema_name
-
sort(ModelsSortInput)
related_models (Model)
Defines has-many relation with other model; ex: children:
related_models(model_schema_name: "child", join_on_property: "parent_id",
foreign_property: "parent_id") { id }
-
filter(ModelsFilterInput) -
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
Joins model [formaly customization] with model-schema-name == model_schema_name
-
sort(ModelsSortInput)
related_user (User)
Defines relation with other user; ex: invited_by: related_user(join_on_property: "invited_by_id") { id }
-
filter(ModelsFilterInput) -
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String) -
sort(UsersSortInput)
related_users (User)
Defines has-many relation with other user; ex: children:
users(join_on_property: "parent_id", foreign_property: "parent_id") { id }
-
filter(ModelsFilterInput) -
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
-
limit(Int) -
sort(UsersSortInput)
user (User)
Defines relation with other user; ex: invited_by: user(join_on_property: "invited_by_id") { id }
-
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String) -
sort(UsersSortInput)
users (User)
Defines has-many relation with other user; ex: children:
users(join_on_property: "parent_id", foreign_property: "parent_id") { id }
-
foreign_property(String)
Load resources with foreign_property == join_on_property
-
join_on_property(String)
Load resources with foreign_property == join_on_property
-
limit(Int) -
sort(UsersSortInput)