跳到主要内容
版本:v2.5.x

checkCompatibility()

This operation checks the compatibility of the SDK with the Milvus server.

JavaScript
checkCompatibility(data?): Promise<any>

Request Syntax

JavaScript
milvusClient.checkCompatibility({
checker?: Function,
message?: string
})

PARAMETERS:

  • checker (Function) -

    A callback function that will be called if the current SDK is compatible.

  • message (string) -

    The error message to throw if the SDK is incompatible.

RETURN TYPE:

Promise<any>

RETURNS:

A promise that resolves to the result of the specified checker function.

Examples

JavaScript
milvusClient.checkCompatibility({
checker: () => { console.log("compatible") },
message: "incompatible"
});