Homepage

RelationOnDemandInterface

Last edit: Oct 13, 2026

Deprecated relations of legacy objects to models and users

interface RelationOnDemandInterface {
  model(
    foreign_property: String = "id"
    join_on_property: String
    model_name: String
  ): ListingsCustomization
  models(
    foreign_property: String!
    join_on_property: String!
    model_name: [String]
  ): [ListingsCustomization!]
  related_model(
    foreign_property: String = "id"
    join_on_property: String
    model_schema_name: String
  ): ListingsCustomization
  related_models(
    foreign_property: String!
    join_on_property: String!
    model_schema_name: [String]
  ): [ListingsCustomization!]
  related_user(
    foreign_property: String = "id"
    join_on_property: String = "user_id"
  ): User
  user(
    foreign_property: String = "id"
    join_on_property: String = "user_id"
  ): User
}

Fields

model (ListingsCustomization)

Returns the related model. Deprecated, use related_model

Name of the property of the related object that must equal the value of join_on_property

Name of the property of this object whose value is matched against foreign_property

Name of the model schema (table) of the related models

models (ListingsCustomization)

Returns related models. Deprecated, use related_models

Name of the property of the related object that must equal the value of join_on_property

Name of the property of this object whose value is matched against foreign_property

Name of the model schema (table) of the related models

Returns the model whose foreign_property equals the value of join_on_property
of this object (belongs-to relation). Legacy relation, use related_record of Record instead

Name of the property of the related object that must equal the value of join_on_property

Name of the property of this object whose value is matched against foreign_property

Name of the model schema (table) of the related models

Returns models whose foreign_property equals the value of join_on_property of
this object (has-many relation), at most 10000 at once. Legacy relation, use
related_records of Record instead

Name of the property of the related object that must equal the value of join_on_property

Name of the property of this object whose value is matched against foreign_property

Name of the model schema (table) of the related models

Returns the user whose foreign_property equals the value of join_on_property
of this object; by default the user whose id is in user_id

Name of the user attribute that must equal the value of join_on_property

Name of the property of this object holding the user id

user (User)

Returns the related user. Deprecated, use related_user

Name of the user attribute that must equal the value of join_on_property

Name of the property of this object holding the user id

Questions?

We are always happy to help with any questions you may have.

contact us