Michael
โ Mic
.) So this is a great opportunity for us to build our own column type!string
, number
, and boolean
are the basic primitive types. If you declare a parameter of this type, Glide will convert whichever values are passed into that declared JavaScript type. In other words โ if you declare a parameter as number
, then you can be sure that the value is a JavaScript number (or undefined
, which can happen for any parameter).primitive
is special in that it doesnโt convert the values, as far as that is possible. For example, if you have a boolean column with a string value of "True"
, if you declare a parameter as boolean
, Glide will pass it as the boolean true
, but if you declare it as primitive
, Glide will pass the string "True"
.uri
, image-uri
, audio-uri
, date-time
, markdown
, phone-number
, email-address
, and emoji
are string types, i.e. Glide will pass them as strings to your code, and you have to return them as strings, but Glide treats them specially. For example, if your computed column declares that it returns date-time
, then you can use all the date/time comparison operators on the result.{ "kind": "array", "items": "string" }
, which declares an array of strings.