OBJECT

Customization

# GraphQL Schema definition

1type Customization implements PropertiesInterface, LegacyCustomAttributeInterface, ListingsMetadata, RemoteModelInterface, RelationOnDemandInterface {
 
2# timestamp of when the record was created, automatically generated by the system
3created_at: JSONDate
 
4customizable: Customizable
 
5# id of a parent, which can other customization, user profile or user
6customizable_id: ID
 
7# class of a parent - Customization, User or UserProfile
8customizable_type: String
 
9# timestamp of when the record was soft delete, populated by delete action. It is
10# also possible to manually set it via update. To undelete change it back to empty
11# value, but please note that associated records would need to be manually
12# undeleted as well.
13deleted_at: JSONDate
 
14# Used mainly for import/export, if you want to use third party service as a
15# source of truth
16external_id: ID
 
17human_name: String
 
18id: ID
 
19name: String
 
20# List of all properties assigned to the object.
21properties: HashObject
 
22# Fetch any property by name and return value as a String; ex: hair_color:
23# property(name: "hair_color")
24#
25# Arguments
26# name: [Not documented]
27property(name: String!): String
 
28# Fetch any property by name and return value as an Array of Strings. ex:
29# todo_list: property_array(name: "todo_list")
30#
31# Arguments
32# name: [Not documented]
33property_array(name: String!): [String!]
 
34# Fetch any property by name and return value as a Boolean; ex: price:
35# property_boolean(name: "enabled")
36#
37# Arguments
38# name: [Not documented]
39property_boolean(name: String!): Boolean
 
40# Fetch any property by name and return value as a Float; ex: price:
41# property_float(name: "price")
42#
43# Arguments
44# name: [Not documented]
45property_float(name: String!): Float
 
46# Fetch any property by name and return value as an Integer; ex: age:
47# property_int(name: "age")
48#
49# Arguments
50# name: [Not documented]
51property_int(name: String!): Int
 
52# Fetch any property by name and return value as a JSON string.
53#
54# Arguments
55# name: [Not documented]
56property_json(name: String!): JSONPayload
 
57# Fetch any property by name, parse it as a JSON and return object
58#
59# Arguments
60# name: [Not documented]
61property_object(name: String!): HashObject
 
62# Fetch any property by name and returns upload details
63#
64# Arguments
65# expires_in: Defines the number of seconds for which the
66# generated url will be accessible. Must be set if acl was set to private
67# name: [Not documented]
68property_upload(expires_in: Int, name: String!): PropertyUpload
 
69# Defines belongs-to relation with other model; ex: parent: model(model_name:
70# "parent", join_on_property: "parent_id") { id }
71#
72# Arguments
73# foreign_property: Load resources with foreign_property ==
74# join_on_property
75# join_on_property: Load remote resource with id ==
76# join_on_property
77# model_schema_name: Joins model [formaly customization] with
78# custom-model-type-name == model_name
79related_model(
80foreign_property: String,
81join_on_property: String,
82model_schema_name: String
83): ListingsCustomization
 
84# Defines has-many relation with other model, returns maximum of 10000 records at
85# once; ex: children: models(model_name: "child", join_on_property: "parent_id",
86# foreign_property: "parent_id") { id }
87#
88# Arguments
89# foreign_property: Load resources with foreign_property ==
90# join_on_property
91# join_on_property: Load resources with foreign_property ==
92# join_on_property
93# model_schema_name: Joins model [formaly customization] with
94# custom-model-type-name == model_name
95related_models(
96foreign_property: String!,
97join_on_property: String!,
98model_schema_name: [String]
99): [ListingsCustomization!]
 
100# Defines relation with other user, returns maximum of 10000 records at once; ex:
101# invited_by: user(join_on_property: "invited_by_id") { id }
102#
103# Arguments
104# foreign_property: [Not documented]
105# join_on_property: [Not documented]
106related_user(foreign_property: String, join_on_property: String): User
 
107# Defines relation object accessible over HTTP in JSON collection identified by
108# it's ID.
109#
110# Arguments
111# endpoint: Endpoint that will return resources for given ids in
112# json format
113# join_on_property: Load remote resource with id ==
114# join_on_property
115remote_model(endpoint: Endpoint!, join_on_property: String!): Customization
 
116# timestamp of when the record was updated, automatically generated by the system
117updated_at: JSONDate
 
118user_id: ID
 
119}

# Required by