Class: Ref

values~Ref(id, collectionopt, databaseopt)

new Ref(id, collectionopt, databaseopt)

FaunaDB ref. See the docs.

Parameters:
Name Type Attributes Description
id string

The id portion of the ref.

collection Ref <optional>

The collection portion of the ref.

database Ref <optional>

The database portion of the ref.

Source:

Extends

Members

class :string

DEPRECATED. Gets the class part out of the Ref.

Type:
  • string
Source:

collection :string

Gets the collection part out of the Ref.

Type:
  • string
Source:

database :Ref

Gets the database part out of the Ref.

Type:
  • Ref
Source:

id :Ref

Gets the id part out of the Ref.

Type:
  • Ref
Source:

Methods

equals(other) → {boolean}

Whether these are both Refs and have the same value.

Parameters:
Name Type Description
other any
Source:
Returns:
Type
boolean