Adding and Deleting External Database Collections

Note: This feature is only available for sites with certain premium plans. If you need to use this feature, you can upgrade your site. Learn more about premium plans.

Wix lets you connect your site to an external database and then work with that database's collections in your site just as you would with our built-in collections.

This article explains how to add and delete external database collections for your site.

Before you begin

Before adding an external database to your Wix site you need to set up or create an external database adaptor.

Note: You can also add external database collections to your site by calling createExternalDatabaseCollection(). For detailed instructions, see the sample flows of the External Database Connections API.

Add external database collections

  1. Select Databases from the Code sidebar (Wix Editor) or the Code sidebar (Wix Studio).

  2. Click the icon next to External Databases and select Add external database.

  3. Choose the provider of the external database you wish to add and click Next.

  4. In the Connect External Database screen:

    1. Choose a namepace to group the external database's collections under.

    2. Enter your endpoint URL for the external database adaptor.

    3. Enter the database adaptor's secret key.

Your external database collections are now listed under the namespace you chose, and you can work with them as you would your other collections.

Delete an external database collection

Delete an external database collection from your site in the same way that you would delete a built-in data collection, using the Show More icon .

Note: This only deletes the collection from your site. It does not delete it from the external database.

Did this help?