prisma-mock 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -212,7 +212,7 @@ const createPrismaMock = async (data = {}, pathToSchema, client = (0, jest_mock_
|
|
|
212
212
|
if (child === "NOT") {
|
|
213
213
|
return !matchOr(item, filter);
|
|
214
214
|
}
|
|
215
|
-
if (
|
|
215
|
+
if (filter == null || filter === undefined) {
|
|
216
216
|
if (filter === null) {
|
|
217
217
|
return val === null || val === undefined;
|
|
218
218
|
}
|
|
@@ -399,7 +399,6 @@ const createPrismaMock = async (data = {}, pathToSchema, client = (0, jest_mock_
|
|
|
399
399
|
return findOne(Object.assign({ where: { id: d.id } }, args));
|
|
400
400
|
};
|
|
401
401
|
const deleteMany = args => {
|
|
402
|
-
const relations = [];
|
|
403
402
|
const model = cachedSchema.datamodel.models.find(model => {
|
|
404
403
|
return getCamelCase(model.name) === prop;
|
|
405
404
|
});
|