@loomcore/api 0.2.63 → 0.2.64

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.
@@ -24,6 +24,11 @@ export function buildWhereClause(queryObject, values = [], tablePrefix) {
24
24
  values.push(value.eq);
25
25
  paramIndex++;
26
26
  }
27
+ if (value.ne !== undefined) {
28
+ conditions.push(`(${qualifiedKey} != $${paramIndex} OR (${qualifiedKey} IS NOT NULL AND $${paramIndex} IS NULL) OR (${qualifiedKey} IS NULL AND $${paramIndex} IS NOT NULL))`);
29
+ values.push(value.ne);
30
+ paramIndex++;
31
+ }
27
32
  if (value.in !== undefined && Array.isArray(value.in)) {
28
33
  const placeholders = value.in.map(() => `$${paramIndex++}`).join(', ');
29
34
  conditions.push(`${qualifiedKey} IN (${placeholders})`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomcore/api",
3
- "version": "0.2.63",
3
+ "version": "0.2.64",
4
4
  "private": false,
5
5
  "description": "Loom Core Api - An opinionated Node.js api using Typescript, Express, and MongoDb or PostgreSQL",
6
6
  "scripts": {