Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

first()

Fetches the first search result.

Returns

An Obj or null – The first Obj that matches the search criteria, or null if the search result is empty.

Examples

Perform a full-text search for “apprentice”, returning only the best hit:

topResult = Scrivito.Obj.where("*", "contains", "apprentice").first();

See also

take, toArray