UNPKG

groq-builder

Version:

A **schema-aware**, strongly-typed GROQ query builder. It enables you to build GROQ queries using **auto-completion**, **type-checking**, and **runtime validation**.

19 lines 580 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const groq_builder_1 = require("../groq-builder"); groq_builder_1.GroqBuilder.implement({ fragment() { return { project: (projectionMap, ...__projectionMapTypeMismatchErrors) => { if (typeof projectionMap === "function") { return projectionMap(this); } return projectionMap; }, }; }, fragmentForType() { return this.fragment(); }, }); //# sourceMappingURL=fragment.js.map