Class: Google::Apis::FirebasedataconnectV1beta::GraphqlRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedataconnect_v1beta/classes.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb,
lib/google/apis/firebasedataconnect_v1beta/representations.rb

Overview

The GraphQL request to Firebase Data Connect. It strives to match the GraphQL over HTTP spec. https://github.com/graphql/graphql-over-http/blob/main/spec/ GraphQLOverHTTP.md#post

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GraphqlRequest

Returns a new instance of GraphqlRequest.



405
406
407
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 405

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#extensionsGoogle::Apis::FirebasedataconnectV1beta::GraphqlRequestExtensions

GraphqlRequestExtensions contains additional information of GraphqlRequest. Corresponds to the JSON property extensions



386
387
388
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 386

def extensions
  @extensions
end

#operation_nameString

Optional. The name of the GraphQL operation name. Required only if query contains multiple operations. See https://graphql.org/learn/queries/#operation- name. Corresponds to the JSON property operationName

Returns:

  • (String)


393
394
395
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 393

def operation_name
  @operation_name
end

#queryString

Required. The GraphQL query document source. Corresponds to the JSON property query

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 398

def query
  @query
end

#variablesHash<String,Object>

Optional. Values for GraphQL variables provided in this request. Corresponds to the JSON property variables

Returns:

  • (Hash<String,Object>)


403
404
405
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 403

def variables
  @variables
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



410
411
412
413
414
415
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 410

def update!(**args)
  @extensions = args[:extensions] if args.key?(:extensions)
  @operation_name = args[:operation_name] if args.key?(:operation_name)
  @query = args[:query] if args.key?(:query)
  @variables = args[:variables] if args.key?(:variables)
end