isGraphQLObject function

bool isGraphQLObject(
  1. InterfaceType clazz
)

Implementation

bool isGraphQLObject(InterfaceType clazz) {
  InterfaceType? search = clazz;

  while (search != null) {
    if (graphQLObjectTypeChecker.hasAnnotationOf(search.element)) return true;
    search = search.superclass;
  }

  return false;
}