Skip to content

Instantly share code, notes, and snippets.

@daffl
Created October 5, 2020 01:03
Show Gist options
  • Save daffl/5a6a25b8be61f33eaf2ab6af33f54682 to your computer and use it in GitHub Desktop.
Save daffl/5a6a25b8be61f33eaf2ab6af33f54682 to your computer and use it in GitHub Desktop.
Initializing feathers-batch on the client
// If your module loader supports the `browser` package.json field
import { batchClient } from 'feathers-batch';
// Alternatively
import { batchClient } from 'feathers-batch/client';
const client = feathers();
// configure Feathers client here
// `batchClient` should be configured *after*
// any other application level hooks
client.configure(batchClient({
batchService: 'batch'
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment