                         .hasMany(C.self)
                         .filter(false)
                         .including(required: C
-                            .hasOne(D.self)
+                            .hasMany(D.self)
                             .orderByPrimaryKey())
                         .orderByPrimaryKey())
                     .orderByPrimaryKey()

        }
    }
    
    func testHasManyHasMany() throws {
        let dbQueue = try makeDatabaseQueue()
        try dbQueue.read { db in
            do {

        }
    }
    
    func testIncludingAllHasManyThrough() throws {
        let dbQueue = try makeDatabaseQueue()
        try dbQueue.read { db in
            do {
