Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

string.length

The calling string length.

Signature

<String>.length: Int

Description

The length property returns the string size.

The length of an empty string is 0.

Return value

Type Description

Int

Number of UTF-16 characters in the calling string.

Examples

Get the length of a String:

"HTTP/1.1 200 OK".length
15

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!