UNPKG

lincd

Version:

LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)

20 lines 716 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CreateQueryFactory = void 0; const MutationQuery_js_1 = require("./MutationQuery.js"); class CreateQueryFactory extends MutationQuery_js_1.MutationQueryFactory { constructor(shapeClass, updateObjectOrFn) { super(); this.shapeClass = shapeClass; this.description = this.convertUpdateObject(updateObjectOrFn, this.shapeClass.shape, true); } getQueryObject() { return { type: 'create', shape: this.shapeClass.shape, description: this.description, }; } } exports.CreateQueryFactory = CreateQueryFactory; //# sourceMappingURL=CreateQuery.js.map