public static function parsePrimaryData(\stdClass $class)
    {
        $members = get_object_vars($class);
        foreach ($members as $varName => $member) {
            if ($varName == AbstractOperation::GRAPHQL_DATA_KEY) {
                return $member;
            }
            if ($member instanceof \stdClass) {
                return self::parsePrimaryData($member);
            }
        }

        throw new NostoException(
            sprintf(
                'Could not find primary data field (%s) from response',
                AbstractOperation::GRAPHQL_DATA_KEY
            )
        );
    }