Miscellaneous
findAllKeys()
Signature
Section titled “Signature”findAllKeys() — returns any
Description
Section titled “Description”Returns all primary key values in a list. In addition to quoted and delimiter you can pass in any argument that findAll() accepts.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
quoted | boolean | yes | false | Set to true to enclose each value in single-quotation marks. |
delimiter | string | yes | , | The delimiter character to separate the list items with. |
Examples
Section titled “Examples”// basic usage
primaryKeyList = model("artist").findAllKeys();
// Quote values, use a different delimiter and filter results with the "where" argument
primaryKeyList = model("artist").findAllKeys(quoted=true, delimiter="-", where="active=1");