patch method

Future patch({
  1. required String serviceName,
  2. required String objectId,
  3. required Map<String, dynamic> data,
  4. Map<String, dynamic> params = const {},
})

EMIT patch serviceName

Merge the existing data of a single or multiple resources with the new data

If no error occured, you will get exactly feathersjs's data format

Otherwise, an exception of type FeatherJsError will be raised

Use FeatherJsErrorType.{ERROR} to known what happen

Uploading file ?: Use rest client, socketio client cannot upload file

Implementation

Future<dynamic> patch(
    {required String serviceName,
    required String objectId,
    required Map<String, dynamic> data,
    Map<String, dynamic> params = const {}}) {
  return this.scketio.patch(
      serviceName: serviceName,
      objectId: objectId,
      data: data,
      params: params);
}