Functions in GROQ defined
Written by Lo Etheridge, Kapehe
In Kap & Lauren learn GROQ - Part 7, we entered the world of GROQ functions and contemplated traveling to the sun or the moon. Kap and I were split on this question, I would much rather go to the moon so that I could have special moon boots! But Kap would travel to the sun and play soccer (fĂștbol).
GROQ Functions
In GROQ, there are numerous functions you can choose when writing out your queries. Whether you want to find the length of a string or even round up a number to a whole number, functions in GROQ can help you out. To find the full list, visit this function reference page.
In this stream, we covered a handful of them. Let's check them out.
Defined Function
The defined()
function takes any argument and evaluates whether it's true, false,
or NULL
: