Class: Google::Apis::FirebasedataconnectV1beta::GraphqlRequest
- Inherits:
-
Object
- Object
- Google::Apis::FirebasedataconnectV1beta::GraphqlRequest
- 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
-
#extensions ⇒ Google::Apis::FirebasedataconnectV1beta::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.
405 406 407 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 405 def initialize(**args) update!(**args) end |
Instance Attribute Details
#extensions ⇒ Google::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_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
393 394 395 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 393 def operation_name @operation_name end |
#query ⇒ String
Required. The GraphQL query document source.
Corresponds to the JSON property query
398 399 400 |
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 398 def query @query end |
#variables ⇒ Hash<String,Object>
Optional. Values for GraphQL variables provided in this request.
Corresponds to the JSON property variables
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 |