Class: Ref

values~ Ref


new Ref(id [, collection] [, database])

FaunaDB ref. See the docs.

Parameters:
Name Type Argument 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.

Extends

Members


class :string

DEPRECATED. Gets the class part out of the Ref.

Type:
  • string

collection :string

Gets the collection part out of the Ref.

Type:
  • string

database :Ref

Gets the database part out of the Ref.

Type:
  • Ref

id :Ref

Gets the id part out of the Ref.

Type:
  • Ref

Methods


equals(other)

Whether these are both Refs and have the same value.

Parameters:
Name Type Description
other any
Returns:
Type
boolean