Methods
# async getPromptByName(name) → {Promise.<(IPrompt|null)>}
Retrieves a prompt by its name from the database.
Parameters:
| Name | Type | Description |
|---|---|---|
name |
string
|
The name of the prompt to retrieve. |
If no prompt with the specified name is found or if a database error occurs.
Error
- The prompt object if found.
Promise.<(IPrompt|null)>