Skip to content
This repository was archived by the owner on Sep 24, 2019. It is now read-only.

Commit 25fca76

Browse files
committed
batch node field
1 parent a96a47a commit 25fca76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/models/graph/schema.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ module Graph
1717
return unless possible_types.map(&:name).include?(gid.model_name)
1818
return unless gid.app == GlobalID.app
1919

20-
Object.const_get(gid.model_name).find(gid.model_id)
20+
model = Object.const_get(gid.model_name)
21+
Graph::FindLoader.for(model).load(gid.model_id.to_i)
2122
end
2223

2324
lazy_resolve(Promise, :sync)

0 commit comments

Comments
 (0)