# OracleLabsParallelGraphAnalyticsPgxRestApi.ComponentStoragesApi

All URIs are relative to */*

Method | HTTP request | Description
------------- | ------------- | -------------
[**componentContainsElement**](ComponentStoragesApi.md#componentContainsElement) | **POST** /core/v1/componentStorages/x-component-storage-name/components/x-id/contains | Check if a component contains a given element
[**destroyComponentStorage**](ComponentStoragesApi.md#destroyComponentStorage) | **DELETE** /core/v1/componentStorages/x-component-storage-name | Delete a componentStorage collection

<a name="componentContainsElement"></a>
# **componentContainsElement**
> componentContainsElement(body, xComponentStorageName, xId)

Check if a component contains a given element

returns a Boolean wrapped in an entity wrapper

### Example
```javascript
import {OracleLabsParallelGraphAnalyticsPgxRestApi} from 'oracle_labs_parallel_graph_analytics__pgx_rest_api';

let apiInstance = new OracleLabsParallelGraphAnalyticsPgxRestApi.ComponentStoragesApi();
let body = new OracleLabsParallelGraphAnalyticsPgxRestApi.ContainsElementRequest(); // ContainsElementRequest | Holds the element whose presence is checked.
let xComponentStorageName = "xComponentStorageName_example"; // String | the name of the ComponentStorage the component is part of.
let xId = 789; // Number | Id of a node identifying the component it belongs to and from which the collection is extracted

apiInstance.componentContainsElement(body, xComponentStorageName, xId, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**ContainsElementRequest**](ContainsElementRequest.md)| Holds the element whose presence is checked. | 
 **xComponentStorageName** | **String**| the name of the ComponentStorage the component is part of. | 
 **xId** | **Number**| Id of a node identifying the component it belongs to and from which the collection is extracted | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: */*
 - **Accept**: Not defined

<a name="destroyComponentStorage"></a>
# **destroyComponentStorage**
> destroyComponentStorage(xComponentStorageName, opts)

Delete a componentStorage collection

### Example
```javascript
import {OracleLabsParallelGraphAnalyticsPgxRestApi} from 'oracle_labs_parallel_graph_analytics__pgx_rest_api';

let apiInstance = new OracleLabsParallelGraphAnalyticsPgxRestApi.ComponentStoragesApi();
let xComponentStorageName = "xComponentStorageName_example"; // String | vertex or edge collection name to be destroyed.
let opts = { 
  'ignoreNotFound': false, // Boolean | if it's equal to true return null if the componentStorage doesn't exist, otherwise throw an exception
  'csrfToken': "csrfToken_example" // String | CSRF token
};
apiInstance.destroyComponentStorage(xComponentStorageName, opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **xComponentStorageName** | **String**| vertex or edge collection name to be destroyed. | 
 **ignoreNotFound** | **Boolean**| if it&#x27;s equal to true return null if the componentStorage doesn&#x27;t exist, otherwise throw an exception | [optional] [default to false]
 **csrfToken** | **String**| CSRF token | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

