@technicity/data-service-generator 0.8.3 → 0.8.4

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.
@@ -19,7 +19,10 @@ function stringifyWhere(input) {
19
19
  rowWithMatchingCursor,
20
20
  });
21
21
  if (paginationWhere) {
22
- result = result + " AND " + paginationWhere;
22
+ result =
23
+ result.length === 0
24
+ ? paginationWhere
25
+ : result + " AND " + paginationWhere;
23
26
  }
24
27
  return result;
25
28
  }
@@ -162,7 +165,7 @@ function getOperatorNeq(value) {
162
165
  // return { k, v };
163
166
  // }
164
167
  function stringifyPaginationWhere(input) {
165
- const { table, args, orderBy, escapeId, escape, rowWithMatchingCursor, } = input;
168
+ const { table, args, orderBy, escapeId, escape, rowWithMatchingCursor } = input;
166
169
  if (args?.$paginate?.after == null && args?.$paginate?.before == null) {
167
170
  return "";
168
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.8.3",
3
+ "version": "0.8.4",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"