Skip to content

Commit

Permalink
Revert "Merge branch 'batch-limit' of https://github.com/biothings/bt…
Browse files Browse the repository at this point in the history
…e_trapi_query_graph_handler into dev"

This reverts commit fcd12ce, reversing
changes made to cfeb7a7.
  • Loading branch information
tokebe committed Dec 12, 2023
1 parent fcd12ce commit cca40d0
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/query_graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,6 @@ export default class QueryGraph {
}
}

_validateBatchSize(queryGraph: TrapiQueryGraph): void {
Object.entries(queryGraph.nodes).forEach(([nodeID, node]) => {
if (node.ids.length > 150) {
throw new InvalidQueryGraphError(`Query node ${nodeID} exceeds batch size limit.`);
}
});
}

_validateDuplicateEdges(queryGraph: TrapiQueryGraph): void {
const edgeSet = new Set();
for (const edgeID in queryGraph.edges) {
Expand Down Expand Up @@ -190,7 +182,6 @@ export default class QueryGraph {
this._validateDuplicateEdges(queryGraph);
this._validateNodeProperties(queryGraph);
this._validateEdgeProperties(queryGraph);
this._validateBatchSize(queryGraph);
this._validateCycles(queryGraph);
this._validateNoDuplicateQualifierTypes(queryGraph);
}
Expand Down

0 comments on commit cca40d0

Please sign in to comment.