You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/inheritance.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -112,12 +112,13 @@ class to the Schema constructor via the `types=` argument:
112
112
See also: `Graphene Interfaces <https://docs.graphene-python.org/en/latest/types/interfaces/>`_
113
113
114
114
Eager Loading & Using with AsyncSession
115
-
--------------------
115
+
----------------------------------------
116
116
When querying the base type in multi-table inheritance or joined table inheritance, you can only directly refer to polymorphic fields when they are loaded eagerly.
117
117
This restricting is in place because AsyncSessions don't allow implicit async operations such as the loads of the joined tables.
118
118
To load the polymorphic fields eagerly, you can use the `with_polymorphic` attribute of the mapper args in the base model:
0 commit comments