# 8base Utils

This library contains utils used by the other 8base service packages.

## API

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

#### Table of Contents

-   [formatDataForMutation](#formatdataformutation)
    -   [Parameters](#parameters)

### formatDataForMutation

Formats entity data for create or update mutation based on passed schema.

#### Parameters

-   `type` **MutationType** The type of the mutation.
-   `tableName` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** The name of the table from the 8base API.
-   `data` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** The entity data for format.
-   `schema` **Schema** The schema of the used tables from the 8base API.
