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

define custom dgraphType result in unexpected schema #36

Open
joeslee opened this issue May 21, 2020 · 0 comments
Open

define custom dgraphType result in unexpected schema #36

joeslee opened this issue May 21, 2020 · 0 comments

Comments

@joeslee
Copy link

joeslee commented May 21, 2020

schema define:

@Node({
  dgraphType: 'Post'
})
export class PostEntity {
  @Property({
    type: PropertyType.String
  })
  title: string;
}

schema build output:

type Post {
  PostEntity.title: string // prefix is classname and type restrict  is unnecessary.
}
PostEntity.title: string .

expect output:

type Post {
  Post.title
}
Post.title: string .

It works well, but the result is not expected.

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

1 participant