File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 8
8
from sqlalchemy .orm .exc import NoResultFound
9
9
from sqlalchemy .orm .query import QueryContext
10
10
from sqlalchemy .orm .strategies import SelectInLoader
11
- from sqlalchemy .orm .util import PathRegistry
12
11
13
12
from graphene import Field
14
13
from graphene .relay import Connection , Node
@@ -265,9 +264,6 @@ def batch_load_fn(self, parents): # pylint: disable=method-hidden
265
264
266
265
loader = SelectInLoader (relationship_prop , (('lazy' , 'selectin' ),))
267
266
268
- # The path is a fixed single token in this case
269
- path = PathRegistry .root + parent_mapper ._path_registry
270
-
271
267
# Should the boolean be set to False? Does it matter for our purposes?
272
268
states = [(sqlalchemy .inspect (parent ), True ) for parent in parents ]
273
269
@@ -276,7 +272,7 @@ def batch_load_fn(self, parents): # pylint: disable=method-hidden
276
272
277
273
loader ._load_for_path (
278
274
query_context ,
279
- path ,
275
+ parent_mapper . _path_registry ,
280
276
states ,
281
277
None ,
282
278
child_mapper ,
You can’t perform that action at this time.
0 commit comments