Skip to content

Delete requires a PK, but the input doesn't allow one #7

Description

@LMFinney

I'm trying to use this for a batch deletion, but it doesn't work for me.

This is the input created for my table's batch deletion operation:

"""All input for the delete `mnDeleteWidget` mutation."""
input mnDeleteWidgetInput {
  """
  An arbitrary string value with no semantic meaning. Will be included in the
  payload verbatim. May be used to track mutations by the client.
  """
  clientMutationId: String

  """
  The one or many `Widget` to be deleted. You must provide the PK values!
  """
  mnPatch: [WidgetPatch!]
}

The comment about needing to provide the PK values is important. The problem is that WidgetPatch isn't the PK values. So, the operation fails. The runtime code demands a PK, but the API expects me to pass in something other than the PK.

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

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions