Skip to main content

checkCompatibility()

Addedv2.3.x

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

await milvusClient.checkCompatibility(data?)

Request Syntax

await 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

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