package com.google.api.graphql.rejoiner;

import com.google.auto.value.AutoValue;
import graphql.schema.DataFetcher;
import graphql.schema.GraphQLFieldDefinition;

/** A GraphQL field definition with it's data fetcher. */
@AutoValue
public abstract class FieldDefinition<T> {
  abstract String parentTypeName();

  abstract GraphQLFieldDefinition field();

  abstract DataFetcher<T> dataFetcher();

  static <T> FieldDefinition create(
      String parentTypeName, GraphQLFieldDefinition field, DataFetcher<T> dataFetcher) {
    return new AutoValue_FieldDefinition(parentTypeName, field, dataFetcher);
  }

  String fieldName() {
    return field().getName();
  }
}

@@ -420,16 +420,19 @@
 finition
+%3CT%3E
  create(
@@ -561,16 +561,19 @@
 finition
+%3CT%3E
 (parentT

Update FieldDefinition.java