Class: Google::Apis::FirebasedataconnectV1::GraphqlRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1::GraphqlRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebasedataconnect_v1/classes.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb,
lib/google/apis/firebasedataconnect_v1/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
-
#extensions ⇒ Google::Apis::FirebasedataconnectV1::GraphqlRequestExtensions
GraphqlRequestExtensions contains additional information of
GraphqlRequest. -
#operation_name ⇒ String
Optional.
-
#query ⇒ String
Required.
-
#variables ⇒ Hash<String,Object>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GraphqlRequest
constructor
A new instance of GraphqlRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GraphqlRequest
Returns a new instance of GraphqlRequest.
543 544 545 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 543 def initialize(**args) update!(**args) end |
Instance Attribute Details
#extensions ⇒ Google::Apis::FirebasedataconnectV1::GraphqlRequestExtensions
GraphqlRequestExtensions contains additional information of GraphqlRequest.
Corresponds to the JSON property extensions
524 525 526 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 524 def extensions @extensions end |
#operation_name ⇒ String
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
531 532 533 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 531 def operation_name @operation_name end |
#query ⇒ String
Required. The GraphQL query document source.
Corresponds to the JSON property query
536 537 538 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 536 def query @query end |
#variables ⇒ Hash<String,Object>
Optional. Values for GraphQL variables provided in this request.
Corresponds to the JSON property variables
541 542 543 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 541 def variables @variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
548 549 550 551 552 553 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 548 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 |