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. |
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) → {boolean}
Whether these are both Refs and have the same value.
Parameters:
Name | Type | Description |
---|---|---|
other |
any |
Returns:
- Type
- boolean