FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
Length
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
Length( value )
length( value )
Length( value )
Length( value )
Length( value )
Description
The length function returns the number of characters in the provided string.
Although we mention characters, technically, we are talking about code points. In Unicode, a code point is usually, but not always, a character. Code points can sometimes represent single characters, but can also represent formatting and other non-alphanumeric characters. For example, the character é can be the single character "e" that includes an acute accent (U+00E9), or it could be displayed as a single character but be composed of an "e" (U+0065) and a "combining" acute accent (U+0301). Visually, you cannot distinguish between the two. |
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
String |
The String that should have its characters counted. |
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!