UNPKG

apollo-modules

Version:

Modular system for building apollo schemas

21 lines (20 loc) 469 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function ioSchema(body) { return ` type ${body.replace(/\$Input/g, '')} input ${body.replace(/\$Input/g, 'Input')} `; } exports.ioSchema = ioSchema; function modificationSchema() { return ` createdById: String createdBy: String createdAt: Date updatedById: String updatedBy: String updatedAt: Date `; } exports.modificationSchema = modificationSchema;