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

fetchEdgeProps method has an error in fetch.ts #72

Closed
devenami opened this issue Dec 29, 2021 · 2 comments
Closed

fetchEdgeProps method has an error in fetch.ts #72

devenami opened this issue Dec 29, 2021 · 2 comments

Comments

@devenami
Copy link

export async function fetchEdgeProps(payload: {
  idRoutes: string[];
  type: string;
  edgeFields?: any;
}) {
  const { idRoutes, edgeFields, type } = payload;
  const edgeType = '`' + type + '`';
  let gql = `fetch prop on ${edgeType} ${idRoutes.join(', ')}`;
  if (edgeFields) {
    gql += ` yield ${edgeType}._src, ${edgeType}._dst `;
    edgeFields[type].forEach(edgeField => {
      if (edgeField !== 'type') {
        gql += `,${edgeType}.${edgeField}`;
      }
    });
  } else {
    gql += ' YIELD edge as `_edge`';
  }

_edgemust not start with _

@hetao92
Copy link
Contributor

hetao92 commented Dec 30, 2021

Thx. We will fix this. Btw, master branch is our development branch. This is used for nebula nightly version with http-gateway nightly version. If you connect nebula v2.6.x with gateway v2.1.x, please use studio v3.1.0 better

@hetao92
Copy link
Contributor

hetao92 commented Dec 30, 2021

fixed in #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants