Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Darrell Warde <[email protected]>
  • Loading branch information
mjfwebb and darrellwarde authored Jul 9, 2024
1 parent 7360dbf commit a4e3e9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
2 changes: 0 additions & 2 deletions packages/graphql/src/schema/resolvers/query/vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ export function vectorResolver({
offset: resolveTree.args.offset,
};

// (context as Neo4jGraphQLTranslationContext).resolveTree = resolveTree;

const { cypher, params } = translateRead({
context: { ...context, resolveTree },
entityAdapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,4 @@ export class VectorFactory {
score: context.vector.scoreVariable,
};

// const entries = Object.entries(context.resolveTree.args.vector || {});
// if (entries.length > 1) {
// throw new Error("Can only call one search at any given time");
// }
// const [indexName, indexInput] = entries[0] as [string, { phrase: string }];
// return {
// index: indexName,
// phrase: indexInput.phrase,
// score: new Cypher.Variable(),
// };
}
}

0 comments on commit a4e3e9a

Please sign in to comment.