public List<UncleBlockAdapter> getOmmers(final DataFetchingEnvironment environment) {
    final BlockchainQueries query = getBlockchainQueries(environment);
    final List<Hash> ommers = blockWithMetaData.getOmmers();
    final List<UncleBlockAdapter> results = new ArrayList<>();
    final Hash hash = blockWithMetaData.getHeader().getHash();
    for (int i = 0; i < ommers.size(); i++) {
      final Optional<BlockHeader> header = query.getOmmer(hash, i);
      header.ifPresent(item -> results.add(new UncleBlockAdapter(item)));
    }

    return results;
  }
Returns the ommers of the block.

@param environment the data fetching environment.
@return a list of UncleBlockAdapter for the ommers of the block.
ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/graphql/internal/pojoadapter/NormalBlockAdapter.java