Skip to content

Possible bug: DataFetcherInputArgumentSchemaMismatchException incorrectly thrown? #1671

Discussion options

You must be logged in to vote

Ok, but items is a query type, correct? So your parent type need to be Query.
i.e.

@DgsData(
    parentType = "Query",
    field = "items"
  )
  public Items getItems(
    final DataFetchingEnvironment dfe,
    @InputArgument final PaginationInput pagination
  ) {
    var item = dfe.getSource();
    var projectId = item.getProject().getId();
    var itemId = item.getId();

    return itemService.getItems(projectId, itemId, pagination);
  }

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ddoongoor
Comment options

Comment options

You must be logged in to vote
2 replies
@srinivasankavitha
Comment options

@ddoongoor
Comment options

Comment options

You must be logged in to vote
2 replies
@srinivasankavitha
Comment options

Answer selected by ddoongoor
@ddoongoor
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants