Skip to content

We should support dynamic arguments for reverse relations. #148

@jnwng

Description

@jnwng

in regards to #147, based on some of the changes to the resources themselves, it looks like arguments passed to the reverse relation are hardcoded; however, we're definitely going to want to be able to manipulate those reverse relations like any other resource / finder.

under the hood, we could potentially take a reference to the designated finder and infer the arguments from there.

here's an example of what i'm talking about:

query {
  courses {
    memberships(someParameter: true, someOtherParameter: false) {
      id 
    }
  }
}

where memberships is designated as a reverse relation on the courses resource.

/cc @bryan-coursera

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions