@8base/utils

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

Usage no npm install needed!

<script type="module">
  import 8baseUtils from 'https://cdn.skypack.dev/@8base/utils';
</script>

README

8base Utils

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

API

Table of Contents

formatDataForMutation

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

Parameters

  • type MutationType The type of the mutation.
  • tableName string The name of the table from the 8base API.
  • data Object The entity data for format.
  • schema Schema The schema of the used tables from the 8base API.