Skip to content

Commit

Permalink
fix: Add new inverse field to datastore search (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyi committed Apr 8, 2024
1 parent 4287c4f commit 54a8ab5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/datastore.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const SCHEMA_SCAN = Joi.object().keys({
}),
search: Joi.object().keys({
field: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_FIELD), SCHEMA_SEARCH_FIELD),
keyword: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_KEYWORD), SCHEMA_SEARCH_KEYWORD)
keyword: Joi.alternatives().try(Joi.array().items(SCHEMA_SEARCH_KEYWORD), SCHEMA_SEARCH_KEYWORD),
inverse: Joi.boolean().default(false).optional()
}),
sort: Joi.string().lowercase().valid('ascending', 'descending').default('descending'),
sortBy: Joi.string().max(100),
Expand Down

0 comments on commit 54a8ab5

Please sign in to comment.