UNPKG

@neo4j/graphql

Version:

A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations

14 lines 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseSelectableAnnotation = parseSelectableAnnotation; const directives_1 = require("../../../graphql/directives"); const SelectableAnnotation_1 = require("../../annotation/SelectableAnnotation"); const parse_arguments_1 = require("../parse-arguments"); function parseSelectableAnnotation(directive) { const { onRead, onAggregate } = (0, parse_arguments_1.parseArguments)(directives_1.selectableDirective, directive); return new SelectableAnnotation_1.SelectableAnnotation({ onRead, onAggregate, }); } //# sourceMappingURL=selectable-annotation.js.map