Method: GraphQL::Query#fingerprint

Defined in:
lib/graphql/query.rb

#fingerprintString

This contains a few components:

  • The selected operation name (or anonymous)
  • The fingerprint of the query string
  • The number of given variables (for readability)
  • The fingerprint of the given variables

This fingerprint can be used to track runs of the same operation-variables combination over time.

Returns:

  • (String)

    An opaque hash identifying this operation-variables combination

See Also:



341
342
343
# File 'lib/graphql/query.rb', line 341

def fingerprint
  @fingerprint ||= "#{operation_fingerprint}/#{variables_fingerprint}"
end