Getters
get & first Methods Documentation
The get method allows you to retrieve multiple items into an array while the first method will get the first matching item and return its object.
Note:
It does not allow you to attach the build method after any of this two.
Method Signature
get(): string;
first(): string;
Parameters
none
Returns
The built url
Examples
1. Get
query
.select("name")
.get();
2. First
query
.select("name")
.first();
Select Cases Table
| Format | Example | Use Case |
|---|---|---|
| Get | query.get() | Retrieve a list with items |
| First | query.first() | Retrieve one item |