cormo-graphql 0.9.0 → 0.9.1
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/schema.js +4 -1
- package/package.json +2 -2
package/lib/schema.js
CHANGED
|
@@ -190,7 +190,10 @@ function createDeleteInputType(model_class, options) {
|
|
|
190
190
|
function createOrderType(model_class, options) {
|
|
191
191
|
const values = {};
|
|
192
192
|
for (const [column, property] of Object.entries(model_class._schema)) {
|
|
193
|
-
if (column === 'id' ||
|
|
193
|
+
if (column === 'id' ||
|
|
194
|
+
property.type_class === cormo.types.String ||
|
|
195
|
+
property.type_class === cormo.types.Integer ||
|
|
196
|
+
property.type_class === cormo.types.BigInteger) {
|
|
194
197
|
values[column.toUpperCase() + '_ASC'] = {
|
|
195
198
|
value: column,
|
|
196
199
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cormo-graphql",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "GraphQL support for CORMO",
|
|
5
5
|
"main": "./lib",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"ts-node": "^10.5.0",
|
|
44
44
|
"typescript": "^4.5.5"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "664a335c185532125ce799446a8caf8c956f0092"
|
|
47
47
|
}
|