@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
13 lines • 614 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseSortableAnnotation = parseSortableAnnotation;
const directives_1 = require("../../../graphql/directives");
const SortableAnnotation_1 = require("../../annotation/SortableAnnotation");
const parse_arguments_1 = require("../parse-arguments");
function parseSortableAnnotation(directive) {
const { byValue } = (0, parse_arguments_1.parseArguments)(directives_1.sortableDirective, directive);
return new SortableAnnotation_1.SortableAnnotation({
byValue,
});
}
//# sourceMappingURL=sortable-annotation.js.map