@fraym/crud 0.13.1 → 0.14.0
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/dist/cmd/crud.js +2 -2
- package/package.json +1 -1
package/dist/cmd/crud.js
CHANGED
|
@@ -188,6 +188,8 @@ const getValueString = (v) => {
|
|
|
188
188
|
return `${v.value}`;
|
|
189
189
|
case graphql_1.Kind.NULL:
|
|
190
190
|
return `null`;
|
|
191
|
+
case graphql_1.Kind.ENUM:
|
|
192
|
+
return `${v.value}`;
|
|
191
193
|
case graphql_1.Kind.OBJECT:
|
|
192
194
|
let objectString = "";
|
|
193
195
|
v.fields.forEach(f => {
|
|
@@ -197,8 +199,6 @@ const getValueString = (v) => {
|
|
|
197
199
|
objectString += `${f.name.value}: ${getValueString(f.value)}`;
|
|
198
200
|
});
|
|
199
201
|
return `{${objectString}}`;
|
|
200
|
-
default:
|
|
201
|
-
throw new Error(`values of kind ${v.kind} are currently not supported`);
|
|
202
202
|
}
|
|
203
203
|
};
|
|
204
204
|
const migrateSchemas = async (definitions, serverAddress, namespace) => {
|