Skip to main content

graph_ql_api_resolvers

Creates, updates, deletes, gets or lists a graph_ql_api_resolvers resource.

Overview

Namegraph_ql_api_resolvers
TypeResource
Idazure.api_management.graph_ql_api_resolvers

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
apiIdtextfield from the properties object
display_nametextfield from the properties object
pathtextfield from the properties object
resolverIdtextfield from the properties object
resourceGroupNametextfield from the properties object
serviceNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTapiId, resolverId, resourceGroupName, serviceName, subscriptionIdGets the details of the GraphQL API Resolver specified by its identifier.
list_by_apiSELECTapiId, resourceGroupName, serviceName, subscriptionIdLists a collection of the resolvers for the specified GraphQL API.
create_or_updateINSERTapiId, resolverId, resourceGroupName, serviceName, subscriptionIdCreates a new resolver in the GraphQL API or updates an existing one.
deleteDELETEIf-Match, apiId, resolverId, resourceGroupName, serviceName, subscriptionIdDeletes the specified resolver in the GraphQL API.
updateUPDATEIf-Match, apiId, resolverId, resourceGroupName, serviceName, subscriptionIdUpdates the details of the resolver in the GraphQL API specified by its identifier.

SELECT examples

Lists a collection of the resolvers for the specified GraphQL API.

SELECT
description,
apiId,
display_name,
path,
resolverId,
resourceGroupName,
serviceName,
subscriptionId
FROM azure.api_management.vw_graph_ql_api_resolvers
WHERE apiId = '{{ apiId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new graph_ql_api_resolvers resource.

/*+ create */
INSERT INTO azure.api_management.graph_ql_api_resolvers (
apiId,
resolverId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apiId }}',
'{{ resolverId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a graph_ql_api_resolvers resource.

/*+ update */
UPDATE azure.api_management.graph_ql_api_resolvers
SET
properties = '{{ properties }}'
WHERE
If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND resolverId = '{{ resolverId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified graph_ql_api_resolvers resource.

/*+ delete */
DELETE FROM azure.api_management.graph_ql_api_resolvers
WHERE If-Match = '{{ If-Match }}'
AND apiId = '{{ apiId }}'
AND resolverId = '{{ resolverId }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';