mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 16:22:44 +00:00
include query example for future debugging
This commit is contained in:
@@ -19,6 +19,9 @@ const buildAuthorConditions = (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 status = error.response?.status || 500;
|
||||
const message =
|
||||
|
||||
Reference in New Issue
Block a user