get_schema_for_collection
Retrieve the schema of a specified Couchbase collection by running an INFER query, returning a dictionary with collection name and inferred schema.
Instructions
Get the schema for a collection in the specified scope. Returns a dictionary with the collection name and the schema returned by running INFER query on the Couchbase collection.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
collection_name | Yes | ||
scope_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"collection_name": {
"title": "Collection Name",
"type": "string"
},
"scope_name": {
"title": "Scope Name",
"type": "string"
}
},
"required": [
"scope_name",
"collection_name"
],
"title": "get_schema_for_collectionArguments",
"type": "object"
}