Skip to content

Demand Control @listSize(slicingArguments: "...") does not allow for nested keys #304

Description

@dotansimha

In recent versions of Demand Control, the runtime supports nested keys. To get there, we must go through compostion first, but using something like that fails:

type Query {
  search(input: SearchInput!): [Book]
    @listSize(slicingArguments: ["input.pagination.first"], requireOneSlicingArgument: true)
}

Due to the fact that our composition assumes that slicingArguments field must point to a single-named field "input.pagination.first" instead of checking the nested keys in the input types.

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

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions