8base CRUD
8base CRUD is a wrapper under the react-apollo component to simplify working with the crud operations.API
Table of Contents
- [Properties](#properties)
- [Properties](#properties-1)
- [Properties](#properties-2)
- [Properties](#properties-3)
- [Properties](#properties-4)
- [Properties](#properties-5)
RecordsList
Extends ComponentComponent for fetching the table content
Properties
RecordCreate
Extends ComponentComponent for creating the record of the table
Properties
RecordCreateMany
Extends ComponentComponent for creating many records of the table
Properties
ChildrenPropObject
Results of the record update queries and mutationProperties
RecordUpdate
Extends ComponentComponent for updating the record of the table
Properties
RecordDelete
Extends ComponentComponent for deleting the record of the table
Properties
Usage
<RecordsList
applicationName={ applicationName }
tableName="someTableName"
variables={ options.variables }
>
{ ({ data, loading }) => (<div>{data}</div>) }
</RecordsList>
<RecordUpdate
tableId="table-id"
recordId="42"
onCompleted={ () => {
...
} }
>
{ (onSubmit, { tableMetaResult, recordDataResult, fetchingLoading }) => (
<FormComponent initialValues={ recordDataResult.data } onSubmit={ onSubmit } />
) }
</RecordUpdate>