UNPKG

@neo4j/graphql

Version:

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

14 lines 676 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parsePopulatedByAnnotation = parsePopulatedByAnnotation; const directives_1 = require("../../../graphql/directives"); const PopulatedByAnnotation_1 = require("../../annotation/PopulatedByAnnotation"); const parse_arguments_1 = require("../parse-arguments"); function parsePopulatedByAnnotation(directive) { const { callback, operations } = (0, parse_arguments_1.parseArguments)(directives_1.populatedByDirective, directive); return new PopulatedByAnnotation_1.PopulatedByAnnotation({ callback, operations, }); } //# sourceMappingURL=populated-by-annotation.js.map