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

@primary directive for 1-Many Fields throws odd error #961

Closed
jsimnz opened this issue Dec 6, 2022 · 0 comments · Fixed by #2796
Closed

@primary directive for 1-Many Fields throws odd error #961

jsimnz opened this issue Dec 6, 2022 · 0 comments · Fixed by #2796
Assignees
Labels
area/query Related to the query component bug Something isn't working
Milestone

Comments

@jsimnz
Copy link
Member

jsimnz commented Dec 6, 2022

Context:

type Todo{
    title: String!
    userName: String!
    isSeen: Boolean
    todoUser: [TodoUser]
}


type TodoUser{
    isVerified: Boolean
    name: String! 
    age: Int
    todoCount: Int
    todo: Todo @primary
}

Resulting error:

duplicate field. Name: todo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/query Related to the query component bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants