Homepage

Transactable

Last edit: Oct 26, 2022

No description

type Transactable implements RelationOnDemandInterface {
  created_at: JSONDate
  creator: User
  creator_id: ID
  custom_address(name: String!): CustomAddrress
  custom_image(name: String!): [ListingImage]
  customizations(id: ID, name: String, user_id: ID): [Customization!]
  external_id: ID
  id: ID!
  is_deleted: Boolean
  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!]
  name: String
  property(name: String!): String
  property_array(name: String!): [String!]!
  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
  slug: String!
  updated_at: JSONDate
  user(
    foreign_property: String = "id"
    join_on_property: String = "user_id"
  ): User
}

Fields

created_at (JSONDate)

creator (User)

creator_id (ID)

custom_address (CustomAddrress)

custom_image (ListingImage)

customizations (Customization)

Fetch any customization by name or id; ex: hair_color: customization(name: "hair_color")

external_id (ID)

id (ID)

is_deleted (Boolean)

model (ListingsCustomization)

Defines belongs-to relation with other model; ex: parent: model(model_name:
"parent", join_on_property: "parent_id") { id }

Load resources with foreign_property == join_on_property

Load remote resource with id == join_on_property

Joins model [formaly customization] with custom-model-type-name == model_name

models (ListingsCustomization)

Defines has-many relation with other model; ex: children: models(model_name:
"child", join_on_property: "parent_id", foreign_property: "parent_id") { id }

Load resources with foreign_property == join_on_property

Load resources with foreign_property == join_on_property

Joins model [formaly customization] with custom-model-type-name == model_name

name (String)

property (String)

Fetch any Property by name; ex: hair_color: property(name: "hair_color")

property_array (String)

Defines belongs-to relation with other model; ex: parent: model(model_name:
"parent", join_on_property: "parent_id") { id }

Load resources with foreign_property == join_on_property

Load remote resource with id == join_on_property

Joins model [formaly customization] with custom-model-type-name == model_name

Defines has-many relation with other model, returns maximum of 10000 records
at once; ex: children: models(model_name: "child", join_on_property:
"parent_id", foreign_property: "parent_id") { id }

Load resources with foreign_property == join_on_property

Load resources with foreign_property == join_on_property

Joins model [formaly customization] with custom-model-type-name == model_name

Defines relation with other user, returns maximum of 10000 records at once;
ex: invited_by: user(join_on_property: "invited_by_id") { id }

slug (String)

updated_at (JSONDate)

user (User)

Defines relation with other user; ex: invited_by: user(join_on_property: "invited_by_id") { id }

Interfaces

RelationOnDemandInterface

Questions?

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

contact us