Data Hub plugin for Pimcore is based on GraphQL, which is a query language for APIs. After sending a GraphQL query to your API endpoint, you will get exactly what you need, since GraphQL returns completely predictable results.