Extension Config

To configure and customize your service plugin, you need to provide important details in the plugin.json configuration file.

Note

If you created your service plugin extension with the CLI, required fields are automatically populated for you.

Configuration Params
namespacestring

The namespace of the external database. This can be used to access collections within the database, for example namespace/collectionId.


uriConfigSpiBaseUri

The URI where the service provider is deployed.


Was this helpful?
Yes
No

queryDataItems( )

Important: This is a handler function. Implement it only as part of the service plugin.


Retrieves a list of items based on the provided filtering, sorting, and paging preferences.

Method Declaration
Copy
Method Parameters
payloadQueryDataItemsEnvelope
Returns
Return Type:QueryDataItemsResponse | Promise<QueryDataItemsResponse>
Errors
BadRequestWixErrorclass
CollectionAlreadyExistsWixErrorclass
CollectionChangeNotSupportedWixErrorclass
CollectionNotFoundWixErrorclass
ItemAlreadyExistsWixErrorclass
ItemNotFoundWixErrorclass
ReferenceAlreadyExistsWixErrorclass
ReferenceNotFoundWixErrorclass
ValidationWixErrorclass
Was this helpful?
Yes
No