Skip to content

Commit bfba37b

Browse files
author
Daniel Hartnell
committed
Support any number of named arguments
1 parent 11c1228 commit bfba37b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/graphql/fragment_cache/fragment.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def read_multi(fragments)
4040
)
4141
end
4242
rescue
43-
# Allow cache_lookup_event to fail when we do not have the data we need
43+
# Allow cache_lookup_event to fail when we do not have all of the requested attributes
4444
end
4545

4646
# Fragmenst without values or with renew_cache: true in their context will have nil values like the read method
@@ -101,7 +101,7 @@ def final_value
101101
@final_value ||= context.query.result["data"]
102102
end
103103

104-
def cache_lookup_event(cache_key, operation_name, path, cache_hit)
104+
def cache_lookup_event(**args)
105105
# This method can be implemented in your application
106106
# This provides a mechanism to monitor cache hits for a fragment
107107
end

0 commit comments

Comments
 (0)