Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix yield alias error in old version #74

Merged
merged 1 commit into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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