generated from nhcarrigan/template
feat: raw command
This commit is contained in:
@@ -63,10 +63,14 @@ export const ai = async(
|
||||
let parsedPrompt = prompt;
|
||||
if (queryString !== null) {
|
||||
const database = new PrismaClient();
|
||||
const data = await database.documentation.findRaw({
|
||||
filter: {
|
||||
$text: {
|
||||
$search: queryString,
|
||||
const data = await database.$runCommandRaw({
|
||||
$search: {
|
||||
index: "docs",
|
||||
text: {
|
||||
path: {
|
||||
wildcard: "*",
|
||||
},
|
||||
query: queryString,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user