Get-BirdWeatherGraphQLVariable
SYNOPSIS
Gets the GraphQL variables from the parameters of a public function
SYNTAX
__AllParameterSets
Get-BirdWeatherGraphQLVariable [-BoundParameter] <hashtable> [-Map] <hashtable[]>
ALIASES
This cmdlet has the following aliases,
- Get-BWGVariable
DESCRIPTION
The Get-BirdWeatherGraphQLVariable cmdlet converts the bound parameters of a public function into the GraphQL variables that are sent with a query
Only the parameters that are bound & are in the map are used. Parameters that are part of a GraphQL input object, such as PeriodCount & PeriodUnit, are combined into one input object variable. A date is converted to the ISO 8601 format
This is an internal helper function that is used by all public functions
EXAMPLES
EXAMPLE 1
Get-BirdWeatherGraphQLVariable -BoundParameter $PSBoundParameters -Map $VariableMap
Returns the variables for the bound parameters
PARAMETERS
-BoundParameter
The $PSBoundParameters hashtable of the calling function
Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Map
The list of variable definitions of the calling function Every definition is a hashtable with the following keys: Parameter - The PowerShell parameter name (not used by input objects) Name - The name of the GraphQL argument Variable - The name of the GraphQL variable Type - The GraphQL type, such as Int, ID!, or InputDuration Level - The position in the field path that the argument belongs to Fields - Input objects only, hashtable that maps the PowerShell parameter name to the GraphQL input field name Required - Input objects only, the GraphQL input fields that are required when the object is used
Type: System.Collections.Hashtable[]
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
OUTPUTS
System.Object[]
NOTES
N/A