Database Hub
Connect to a Database
6 min
connect to a database introduction connecting a database using the database hub allows you to have access to the source database structure and data from inside your app in back4app this ensures any new updates for schemas and/or data are immediately delivered to your app so everything is up to date at any given moment this is also useful when big (a k a in huge) databases are available, allowing you to use its data without having to fully copy the database to your account prerequisites in order to use or share a database, you will need an app created at back4app see the create new app tutorial to learn how to create an app at back4app 1 find a database to connect go to the database hub list of databases and search for any topic that interests you for this tutorial, will be used the database of world continents, countries and cities 2 connect click the connect connect button on the top right corner of the screen the counter on the right side shows how many apps are using that database at the moment the connect dialog will appear then choose to which app, from one of your already existing apps, you want to connect the chosen app in the drop down will have access to the database that you are connecting to then, success message will appear 3 use the data go to the dashboard of the app you connected you will notice the classes from the connected database appear in the database browser in the following formats databasename classname databasename classname if it is a custom class databasename classname databasename classname if it is a parse class the difference is that parse classes have two between the databasename and classname from now on you can query the data of the connected classes on your code, the api console, the graphql console and even make relations relations and pointers pointers among your app’s classes and the connected ones