HasIdentity

HasIdentity()
HasIdentity()
HasIdentity()
HasIdentity()
has_identity()
has_identity()
HasIdentity()
HasIdentity()

Description

The HasIdentity function returns true if the current client authentication credentials have an associated identity, and false if they don’t.

Parameters

None.

Returns

A boolean indicating whether the current client credentials are associated with an identity.

Examples

curl https://db.fauna.com/ \
    -u fnAChGwBcAACAO70ziE0cfROosNJHdgBmJU1PgpL: \
    -d '{ "has_identity": null }'
// Not available in this language yet.
System.out.println(
   client.query(HasIdentity()).get());
result, _ := client.Query(f.HasIdentity())

fmt.Println(result)
// Not available in this language yet.
# Not available in this language yet.
# Not available in this language yet.
// Not available in this language yet.
client.query(q.HasIdentity())
  .then((ret) => console.log(ret))
HTTP/1.1 200 OK
{ "resource": false }
false
false
false
false
false
false
false
false

Was this article helpful?

We're sorry to hear that.
Tell us how we can improve! documentation@fauna.com

Thank you for your feedback!