UNPKG

@neo4j/graphql

Version:

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

16 lines 715 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseTimestampAnnotation = parseTimestampAnnotation; const directives_1 = require("../../../graphql/directives"); const TimestampAnnotation_1 = require("../../annotation/TimestampAnnotation"); const parse_arguments_1 = require("../parse-arguments"); function parseTimestampAnnotation(directive) { const { operations } = (0, parse_arguments_1.parseArguments)(directives_1.timestampDirective, directive); if (operations.length === 0) { operations.push("CREATE", "UPDATE"); } return new TimestampAnnotation_1.TimestampAnnotation({ operations, }); } //# sourceMappingURL=timestamp-annotation.js.map