PropertiesInterface
Object with properties, including upload properties
interface PropertiesInterface {
address(name: String!): CustomAddrress
addresses(name: String): [CustomAddrress!]
attachment(name: String!): PrivateFile
attachments(name: String): [PrivateFile!]
id: ID
image(name: String!): Image
images(name: String): [Image!]
properties(select: [PropertiesFieldInput!]): HashObject
property(name: String!): String
property_array(name: String!): [String!]
property_boolean(name: String!): Boolean
property_float(name: String!): Float
property_int(name: String!): Int
property_json(name: String!): JSONPayload
property_object(name: String!): HashObject
property_upload(expires_in: Int, name: String!): PropertyUpload
}
Fields
address (CustomAddrress)
Returns the legacy address property with the given name. Deprecated, store addresses in your own table
-
name(String)
Name of the address property
addresses (CustomAddrress)
Returns legacy address properties, optionally only those with the given name.
Deprecated, store addresses in your own table
-
name(String)
Name of the address property; all when omitted
attachment (PrivateFile)
Returns the legacy attachment property with the given name. Deprecated, use property_upload
-
name(String)
Name of the attachment property
attachments (PrivateFile)
Returns legacy attachment properties, optionally only those with the given name. Deprecated, use property_upload
-
name(String)
Name of the attachment property; all when omitted
id (ID)
Unique identifier of the object
image (Image)
Returns the legacy image property with the given name. Deprecated, use property_upload
-
name(String)
Name of the image property
images (Image)
Returns legacy image properties, optionally only those with the given name. Deprecated, use property_upload
-
name(String)
Name of the image property; all when omitted
properties (HashObject)
All properties of the object as an object keyed by property name
-
select(PropertiesFieldInput)
Properties to return, each converted to the given type (as by the matching
property_* field; other types become strings); all properties as stored when omitted
property (String)
Returns the value of the property with the given name as a string; ex: hair_color: property(name: "hair_color")
-
name(String)
Name of the property
property_array (String)
Returns the value of the property with the given name as an array of strings;
a single value is wrapped in an array and no value gives an empty array; ex:
todo_list: property_array(name: "todo_list")
-
name(String)
Name of the property
property_boolean (Boolean)
Returns the value of the property with the given name as a boolean. Accepts
true/false values and the strings "t"/"T" and "f"/"F"; any other value returns
an error; ex: enabled: property_boolean(name: "enabled")
-
name(String)
Name of the property
property_float (Float)
Returns the value of the property with the given name as a float; returns an
error when the value is not a number; ex: price: property_float(name: "price")
-
name(String)
Name of the property
property_int (Int)
Returns the value of the property with the given name as an integer; returns
an error when the value cannot be converted, e.g. "abc" or "1.5"; ex: age:
property_int(name: "age")
-
name(String)
Name of the property
property_json (JSONPayload)
Returns the value of the property with the given name as stored, without conversion
-
name(String)
Name of the property
property_object (HashObject)
Returns the value of the property with the given name parsed from JSON text
into an object; returns an error when the value is not valid JSON
-
name(String)
Name of the property
property_upload (PropertyUpload)
Returns the file stored in the given upload property; ex: avatar: property_upload(name: "avatar") { url }
-
expires_in(Int)
Number of seconds for which the returned URLs are valid. When given, signed
URLs are returned; required to access files uploaded with acl private
-
name(String)
Name of the upload property