mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-09 09:22:38 +00:00
include query example for future debugging
This commit is contained in:
@@ -19,6 +19,9 @@ const buildAuthorConditions = (author) => {
|
|||||||
return { authors: author };
|
return { authors: author };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//"$and": [ {"published": true}, {"$text": { "$search": "titleString", "$caseSensitive": false } }, { "authors" : "authorString"}]
|
||||||
|
//is a good example of a query constructed with this function
|
||||||
|
|
||||||
const handleErrorResponse = (res, error, functionName) => {
|
const handleErrorResponse = (res, error, functionName) => {
|
||||||
const status = error.response?.status || 500;
|
const status = error.response?.status || 500;
|
||||||
const message =
|
const message =
|
||||||
|
|||||||
Reference in New Issue
Block a user