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

代码生成器生成的schema.dgraph属性不正确 #59

Open
B-Five opened this issue Dec 15, 2020 · 0 comments
Open

代码生成器生成的schema.dgraph属性不正确 #59

B-Five opened this issue Dec 15, 2020 · 0 comments
Labels
bug Something isn't working generator module arc-generator

Comments

@B-Five
Copy link
Contributor

B-Five commented Dec 15, 2020

现象

代码生成器生成的Dgraph表结构不正确,某个Type下的所有属性都会生成为DgraphType下的属性。name是属性,b是行为
schema如下,

type A{
    name:String
    b(String:bId):B
}

生成的表结构如下

<A.id>: string .
<A.b>: uid .

期望

schema中需要显性的区分属性和行为,这样才能更准确的生成DgraphType

<A.id>: string .
@B-Five B-Five added bug Something isn't working generator module arc-generator labels Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working generator module arc-generator
Projects
None yet
Development

No branches or pull requests

1 participant