Closed jaberbu closed 3 years ago
Now you have to make two queries and combine them
import * as _ from 'lodash'; const date_1 = await Onfirework.listDocs([['DATE_START', '>=', date]]); const date_2 = await Onfirework.listDocs([['DATE_END', '<=', date]]); const date = _.intersectionWith(date_1, date_2, _.isEqual);
The idea is that this combination is done directly in Onfirework function, abstracting the user and minify Query limitations
const date = await Onfirework.listDocs([ ['DATE_START', '>=', date], ['DATE_END', '<=', date] ]);
😯
@jaberbu Should this be done on the same Onfirework.listDocs method?
Now you have to make two queries and combine them
The idea is that this combination is done directly in Onfirework function, abstracting the user and minify Query limitations