Skip to content

Add TrivalDataFetcher Marker interface #329

Closed
@cliedeman

Description

@cliedeman

None of the datafetchers created implement the TrivalDataFetcher interface so they show up in instrumentation code.

https://github.com/graphql-java-kickstart/graphql-java-tools/blob/master/src/main/kotlin/com/coxautodev/graphql/tools/MethodFieldResolver.kt#L108

We could add another check here with a heuristic to see if we think we have a trivial data fetcher:

  • 0 arguments
  • The method in question in on the search.type or a parent class
  • The method starts with get

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