BasicPropertyInterface
Object with properties. Every property_* field returns null when the property has no value
interface BasicPropertyInterface {
id: ID
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
}
Fields
id (ID)
Unique identifier of the object
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