// Creates a Resolver object. A resolver converts incoming requests into a format
// that a data source can understand and converts the data source's responses into
// GraphQL.
Creates a Resolver object. A resolver converts incoming requests into a format
that a data source can understand and converts the data source's responses into
GraphQL.
// Creates a Resolver object . A resolver converts incoming requests into a format // that a data source can understand and converts the data source ' s responses into // GraphQL .
func (c *Client) CreateResolver(ctx context.Context, params *CreateResolverInput, optFns ...func(*Options)) (*CreateResolverOutput, error) {
	if params == nil {
		params = &CreateResolverInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "CreateResolver", params, optFns, addOperationCreateResolverMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*CreateResolverOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) CreateResolver ( ctx context . Context , params * CreateResolverInput , optFns ... func ( * Options ) ) ( * CreateResolverOutput , error ) { if params == nil { params = & CreateResolverInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationCreateResolverMiddlewares ) if err != nil { return nil , err } out := result . ( * CreateResolverOutput ) out . ResultMetadata = metadata return out , nil }
Creates a Resolver object.
Creates a Resolver object .