obrigado-react-admin-backend-utils
Version:
Helper utilities for react-admin graphql backend.
23 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const type_graphql_1 = require("type-graphql");
let GQLFileInput = class GQLFileInput {
};
tslib_1.__decorate([
type_graphql_1.Field({ nullable: true, description: "name of the file, set null if you want to delete current file" }),
tslib_1.__metadata("design:type", String)
], GQLFileInput.prototype, "file_name", void 0);
tslib_1.__decorate([
type_graphql_1.Field({ description: "File body in base64 encoding,set null if you want to delete current file", nullable: true }),
tslib_1.__metadata("design:type", String)
], GQLFileInput.prototype, "body", void 0);
tslib_1.__decorate([
type_graphql_1.Field({ defaultValue: false, description: "Set this to true if you want to leave current file unchanged" }),
tslib_1.__metadata("design:type", Boolean)
], GQLFileInput.prototype, "skip", void 0);
GQLFileInput = tslib_1.__decorate([
type_graphql_1.InputType('FileInput')
], GQLFileInput);
exports.GQLFileInput = GQLFileInput;
//# sourceMappingURL=GQLFileInput.js.map