SDK
SDK PHP v3.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

apply #

Applies the new mapping to the collection.


apply([options], [callback]) #

ArgumentsTypeDescription
optionsJSON ObjectOptional parameters
callbackfunctionOptional callback

Options #

OptionTypeDescriptionDefault
queuablebooleanMake this request queuable or nottrue

Return Value #

Returns this CollectionMapping object to allow chaining.


Callback Response #

Returns the updated CollectionMapping object.

Usage #

<?php
use \Kuzzle\DataMapping;
// ...
/**
  * @var $dataMapping DataMapping
  */
$dataMapping->apply();