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 SQL 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.
692 693 694 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 692 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
673 674 675 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 673 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
680 681 682 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 680 def operation_name @operation_name end |
#query ⇒ String
Required. The GraphQL query document source.
Corresponds to the JSON property query
685 686 687 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 685 def query @query end |
#variables ⇒ Hash<String,Object>
Optional. Values for GraphQL variables provided in this request.
Corresponds to the JSON property variables
690 691 692 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 690 def variables @variables end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
697 698 699 700 701 702 |
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 697 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 |