veritatisdoloremque
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (17 loc) • 655 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [Reference](./database.reference.md) > [setPriority](./database.reference.setpriority.md)
## Reference.setPriority() method
<b>Signature:</b>
```typescript
setPriority(
priority: string | number | null,
onComplete: (a: Error | null) => any
): Promise<any>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| priority | string \| number \| null | |
| onComplete | (a: Error \| null) => any | |
<b>Returns:</b>
Promise<any>