graph_ql_api_resolvers
Creates, updates, deletes, gets or lists a graph_ql_api_resolvers
resource.
Overview
Name | graph_ql_api_resolvers |
Type | Resource |
Id | azure.api_management.graph_ql_api_resolvers |
Fields
- vw_graph_ql_api_resolvers
- graph_ql_api_resolvers
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
apiId | text | field from the properties object |
display_name | text | field from the properties object |
path | text | field from the properties object |
resolverId | text | field from the properties object |
resourceGroupName | text | field from the properties object |
serviceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | GraphQL API Resolver Entity Base Contract details. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | apiId, resolverId, resourceGroupName, serviceName, subscriptionId | Gets the details of the GraphQL API Resolver specified by its identifier. |
list_by_api | SELECT | apiId, resourceGroupName, serviceName, subscriptionId | Lists a collection of the resolvers for the specified GraphQL API. |
create_or_update | INSERT | apiId, resolverId, resourceGroupName, serviceName, subscriptionId | Creates a new resolver in the GraphQL API or updates an existing one. |
delete | DELETE | If-Match, apiId, resolverId, resourceGroupName, serviceName, subscriptionId | Deletes the specified resolver in the GraphQL API. |
update | UPDATE | If-Match, apiId, resolverId, resourceGroupName, serviceName, subscriptionId | Updates 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.
- vw_graph_ql_api_resolvers
- graph_ql_api_resolvers
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 }}';
SELECT
properties
FROM azure.api_management.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.api_management.graph_ql_api_resolvers (
apiId,
resolverId,
resourceGroupName,
serviceName,
subscriptionId,
properties
)
SELECT
'{{ apiId }}',
'{{ resolverId }}',
'{{ resourceGroupName }}',
'{{ serviceName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: path
value: string
- name: description
value: string
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 }}';