Whoops, my `==` got erased, it should read:
 

> db.session.query(Images)\
>     .join(VideoClip,
>           Images.video_clip_id == VideoClip.id
>           )\
>
>
>> I am explicitly providing the on-clause arguments, but that is not 
necessary for configured relationships ( see 
https://docs.sqlalchemy.org/en/13/orm/query.html#sqlalchemy.orm.query.Query.join
 ) 

When using `join()` and configured relationships, if you are not filtering 
on that relationship you may want to use the 
`.options(contains_eager('relationship))`  construct (see 
https://docs.sqlalchemy.org/en/13/orm/loading_relationships.html#sqlalchemy.orm.contains_eager
 )

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/06ca5af9-1d4c-4804-9066-5636be17e40c%40googlegroups.com.

Reply via email to