Modificar una configuración existente de resolvedor personalizado.
An Atlas Project/Group ID.
El ObjectID de tu aplicación. La sección de ID de Proyecto y ID de la aplicación de App Services API muestra cómo encontrar este valor.
The unique _id value of a custom resolver.
A valid, updated custom resolver configuration object.
The name of the resolver's parent type. This can be "Query", "Mutation", or the name of a generated type if this is a computed property.
The name of the custom resolver field that appears in the GraphQL schema.
El tipo de entrada que utiliza el resolvedor personalizado. Este valor debe corresponder al valor de input_type:
"scalar" o "scalar-list""generated" o "generated-list""custom"If undefined, the resolver does not accept an input.
Los valores son scalar, scalar-list, generated, generated-list o custom.
The type of the value returned by the custom resolver. This can be a scalar, the name of an existing generated type, or a custom JSON schema object.
Si no se define, el resolver devuelve un objeto DefaultPayload:
type DefaultPayload {
status: String!
}
El tipo de carga útil que utiliza el resolvedor personalizado. Este valor debe corresponder al valor de payload_type:
"scalar" or "scalar-list""generated" or "generated-list""custom"If undefined, the resolver returns a DefaultPayload object.
Los valores son scalar, scalar-list, generated, generated-list o custom.
The custom resolver's unique ID.
El ID único de la función resolver.
curl \
--request PUT 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/graphql/custom_resolvers/{customResolverId}' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"on_type": "string",
"field_name": "string",
"input_type": "string",
"input_type_format": "scalar",
"payload_type": "string",
"payload_type_format": "scalar",
"_id": "string",
"function_id": "string"
}'
{
"on_type": "string",
"field_name": "string",
"input_type": "string",
"input_type_format": "scalar",
"payload_type": "string",
"payload_type_format": "scalar",
"_id": "string",
"function_id": "string"
}