Skip to content

(GraphQL API) Bidirectional edge not generated for interface field #5393

@CosmicPangolin

Description

@CosmicPangolin

What version of Dgraph are you using?
20.03.1

Have you tried reproducing the issue with the latest release?
Yep

What is the hardware spec (RAM, OS)?
N/A

Steps to reproduce the issue (command/config used to run Dgraph).
Consider the following schema:

interface File {
     users: [User!] @hasInverse(field: files)
}

type Image implements File {
}

type User {
     files: [File!]
}

Expected behaviour and actual result.
When I save an Image with a User, I would expect to be able to traverse from User back to that Image via User.files. Currently only the Image ---> User edge is created

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/graphqlIssues related to GraphQL support on Dgraph.status/needs-attentionThis issue needs more eyes on it, more investigation might be required before accepting/rejecting it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions