Method: GraphQL::Query#operation_fingerprint

Defined in:
lib/graphql/query.rb

#operation_fingerprintString

Returns An opaque hash for identifying this query's given query string and selected operation.

Returns:

  • (String)

    An opaque hash for identifying this query's given query string and selected operation



346
347
348
# File 'lib/graphql/query.rb', line 346

def operation_fingerprint
  @operation_fingerprint ||= "#{selected_operation_name || "anonymous"}/#{Fingerprint.generate(query_string || "")}"
end