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 f86928b commit 7eb72cdCopy full SHA for 7eb72cd
lib/graphiti/query.rb
@@ -49,9 +49,7 @@ def hash
49
h[:page] = pagination
50
if association?
51
resource_type = @resource.class.type
52
- h[:extra_fields] = {
53
- resource_type => extra_fields[resource_type]
54
- } if extra_fields.key?(resource_type)
+ h[:extra_fields] = {resource_type => extra_fields[resource_type]} if extra_fields.key?(resource_type)
55
else
56
h[:fields] = fields
57
h[:extra_fields] = extra_fields
spec/query_spec.rb
@@ -747,7 +747,7 @@
747
extra_fields: {positions: [:baz]},
748
include: {
749
department: {
750
- extra_fields: {departments: [:bax] }
+ extra_fields: {departments: [:bax]}
751
}
752
753
0 commit comments