nest-prisma_doc-gen 1.0.16 → 1.0.18
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/entities/field.js +1 -4
- package/package.json +1 -1
package/dist/entities/field.js
CHANGED
|
@@ -109,10 +109,7 @@ export class DocGenField {
|
|
|
109
109
|
props.push(`example: true`);
|
|
110
110
|
}
|
|
111
111
|
else if (this.scalarField.kind === "enum") {
|
|
112
|
-
const example = [`example: Object.values(${this.scalarField.type})`];
|
|
113
|
-
if (!this.isArray) {
|
|
114
|
-
example.push("[0]");
|
|
115
|
-
}
|
|
112
|
+
const example = [`example: Object.values(${this.scalarField.type}) ${this.isArray ? "" : "[0]"}`];
|
|
116
113
|
props.push(example.join());
|
|
117
114
|
}
|
|
118
115
|
else if (this.scalarField.type === "Int") {
|