# Weaviate

> Manage Weaviate collections, tenants and objects and run GraphQL queries.

App · 16 actions. Web page: https://docs.lodol.com/docs/integrations/weaviate

## Actions

### Add a collection property

Add a collection property.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Name (`name`, text, required): Name.
- Data types (`data_types`, list, required): Data types. One or more of: `text`, `text[]`, `int`, `int[]`, `number`, `number[]`, `boolean`, `boolean[]`, `date`, `date[]`, and 7 more.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "dataType": [
      "example"
    ],
    "name": "example"
  }
}
```

### Create a collection

Create a collection.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Description (`description`, text): Description.
- Properties (`properties`, list): Properties.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "class": "example",
    "description": "example",
    "properties": [
      {
        "dataType": [
          "example"
        ],
        "name": "example"
      }
    ]
  }
}
```

### Create an object

Create an object.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Properties (`properties`, object, required): Properties.
- Object ID (`object_id`, text): Object ID.
- Tenant (`tenant`, text): Tenant.
- Vector (`vector`, list): Vector.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "class": "example",
    "creationTimeUnix": 1,
    "id": "example",
    "lastUpdateTimeUnix": 1,
    "properties": {},
    "tenant": "example"
  }
}
```

### Delete a collection

Delete a collection.

**Inputs**

- Collection (`collection`, text, required): Collection.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {}
}
```

### Delete an object

Delete an object.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Object ID (`object_id`, text, required): Object ID.
- Tenant (`tenant`, text): Tenant.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {}
}
```

### Get a collection

Get a collection.

**Inputs**

- Collection (`collection`, text, required): Collection.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "class": "example",
    "description": "example",
    "properties": [
      {
        "dataType": [
          "example"
        ],
        "name": "example"
      }
    ]
  }
}
```

### Get a collection tenant

Get a collection tenant.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Tenant (`tenant`, text, required): Tenant.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "activityStatus": "example",
    "name": "example"
  }
}
```

### Get an object

Get an object.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Object ID (`object_id`, text, required): Object ID.
- Tenant (`tenant`, text): Tenant.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "class": "example",
    "creationTimeUnix": 1,
    "id": "example",
    "lastUpdateTimeUnix": 1,
    "properties": {},
    "tenant": "example"
  }
}
```

### Get cluster metadata

Get cluster metadata.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "hostname": "example",
    "modules": {},
    "version": "example"
  }
}
```

### List collection shards

List collection shards.

**Inputs**

- Collection (`collection`, text, required): Collection.

**Outputs**

- `data` (list): The response from Weaviate.

**Example output**

```json
{
  "data": [
    {
      "name": "example",
      "status": "example"
    }
  ]
}
```

### List collection tenants

List collection tenants.

**Inputs**

- Collection (`collection`, text, required): Collection.

**Outputs**

- `data` (list): The response from Weaviate.

**Example output**

```json
{
  "data": [
    {
      "activityStatus": "example",
      "name": "example"
    }
  ]
}
```

### List collections

List collections.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "classes": [
      {
        "class": "example",
        "description": "example",
        "properties": [
          {
            "dataType": [
              "example"
            ],
            "name": "example"
          }
        ]
      }
    ]
  }
}
```

### List objects

List objects.

**Inputs**

- Collection (`collection`, text): Collection.
- Tenant (`tenant`, text): Tenant.
- Limit (`limit`, number): Limit. From 1 to 1000.
- After (`after`, text): After.
- Offset (`offset`, number): Offset.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "objects": [
      {
        "class": "example",
        "creationTimeUnix": 1,
        "id": "example",
        "lastUpdateTimeUnix": 1,
        "properties": {},
        "tenant": "example"
      }
    ],
    "totalResults": 1
  }
}
```

### Run a GraphQL query

Run a GraphQL query.

**Inputs**

- Query (`query`, text, required): Query.
- Variables (`variables`, object): Variables.
- Operation name (`operation_name`, text): Operation name.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {
    "data": {}
  }
}
```

### Update object properties

Update object properties.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Object ID (`object_id`, text, required): Object ID.
- Properties (`properties`, object, required): Properties.
- Tenant (`tenant`, text): Tenant.
- Vector (`vector`, list): Vector.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {}
}
```

### Validate an object

Validate an object.

**Inputs**

- Collection (`collection`, text, required): Collection.
- Properties (`properties`, object, required): Properties.
- Tenant (`tenant`, text): Tenant.

**Outputs**

- `data` (object): The response from Weaviate.

**Example output**

```json
{
  "data": {}
}
```
