diff --git a/src/Query/Joining/NestedQuery.php b/src/Query/Joining/NestedQuery.php
index 4db5960a63e0948b47bccada85f82699535d1da9..e43ff18be4414ed6aa829cf096512492bbd69efd 100644
--- a/src/Query/Joining/NestedQuery.php
+++ b/src/Query/Joining/NestedQuery.php
@@ -67,4 +67,24 @@ class NestedQuery implements BuilderInterface
             )
         ];
     }
+
+    /**
+     * Returns nested query object.
+     *
+     * @return BuilderInterface
+     */
+    public function getQuery()
+    {
+        return $this->query;
+    }
+
+    /**
+     * Returns path this query is set for.
+     *
+     * @return string
+     */
+    public function getPath()
+    {
+        return $this->path;
+    }
 }