Skip to content

Commit

Permalink
fix: fix yield alias error in old version (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Dec 30, 2021
1 parent 081cdc7 commit 49a5b81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/assets/utils/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function fetchEdgeProps(payload: {
}
});
} else {
gql += ' YIELD edge as `_edge`';
gql += ' YIELD edge as `edges_`';
}

const { data } = (await service.execNGQL({
Expand Down
4 changes: 2 additions & 2 deletions app/assets/utils/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const getExploreGQLWithIndex = (params: {
`LOOKUP ON
${handleKeyword(tag)} ${wheres ? `\nWHERE ${wheres}` : ''}
` +
` yield vertex as \`_vertex\` | LIMIT ${
` yield vertex as \`vertex_\` | LIMIT ${
quantityLimit ? quantityLimit : 100
}`;

Expand Down Expand Up @@ -286,7 +286,7 @@ export const getPathGQL = (params: {
`FIND ${type} PATH FROM ${_srcIds} TO ${_dstIds} over ${_relation}` +
`${direction ? ` ${direction}` : ''}` +
`${stepLimit ? ' UPTO ' + stepLimit + ' STEPS' : ''}` +
' yield path as `_path`' +
' yield path as `paths_`' +
`${quantityLimit ? ' | LIMIT ' + quantityLimit : ''}`;

return gql;
Expand Down

0 comments on commit 49a5b81

Please sign in to comment.