1

I need to execute such sql query on mongo(I mean mongodb query should be logically equal to the sql). So here is the SQL query:

SELECT * FROM table1 ALIAS1
WHERE 
 field1=1
AND
 field2=2
AND (
  EXISTS(
    SELECT * FROM table2 
    where table2.field33 = ALIAS1.field1
  )
)

Is it possible to do such a query in mongodb in one query?

1 Answer 1

2

Use https://github.com/impetus-opensource/Kundera for any such sql like queries. it allows a way to execute JPA queries over mongoDB

Sign up to request clarification or add additional context in comments.

1 Comment

Does it really will be converted to one mongoDb query ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.