We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80e48e5 commit f86928bCopy full SHA for f86928b
lib/graphiti/query.rb
@@ -48,9 +48,10 @@ def hash
48
h[:sort] = sorts
49
h[:page] = pagination
50
if association?
51
+ resource_type = @resource.class.type
52
h[:extra_fields] = {
- @resource.class.type => extra_fields[@resource.class.type]
53
- } if extra_fields.key?(@resource.class.type)
+ resource_type => extra_fields[resource_type]
54
+ } if extra_fields.key?(resource_type)
55
else
56
h[:fields] = fields
57
h[:extra_fields] = extra_fields
0 commit comments