Skip to content

data creation via the reverse edges? #20

Open
@hartig

Description

@hartig

As per #19 (comment), @keski asks the following:

The purpose of the reverse links is primarily to make querying more flexible and expressive. However, do we also want to support data creation via these reverse edges? For example,

type A {
   value: B
}

type B {
   name: String!
   _valueOfA: [A] # Reverse link, 1:N
}

input _InputToCreateA {
   value: _InputToConnectB
}

input _InputToConnectA {
   connect: ID!
   create: _InputToCreateA
}

input _InputToCreateB {
    name: String!
    _valueOfA: _InputToConnectA # do we include this field?
}

input _InputToConnectB {
   connect: ID!
   create: _InputToCreateB
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogKeep open for later (typically, not a problem for SPIRIT but maybe for other woo.sh projects)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions