In this guide, we'll explore how to use Xano's add-ons feature to enhance your application's data and improve performance. Add-ons allow you to extend the data of a single request, similar to how GraphQL works for Facebook posts. By combining related data from multiple tables into one request, you can reduce the number of requests and improve your app's efficiency.
Add-ons are a way to extend the data of a single request in a REST API. They work like GraphQL, which Facebook developed to fetch all the information related to a post (likes, comments, relationships, etc.) through one request, improving performance.
In a traditional REST API, you might have to make multiple requests to get all the data you need. With add-ons, you can combine data from different tables into a single response, reducing the number of requests and improving performance.
Let's walk through an example of how to set up an add-on for a shopping mall directory app. Suppose you have a `stores` table with columns for the store name, description, and location within the mall. You might want to include contact information (phone number and website) when fetching store details.
First, create a new table called `contact` with columns for `phone` and `website`. Additionally, add a `storesId` column as a reference to the `stores` table. This will allow you to connect the contact information to the appropriate store.
Now, when you fetch store data, the response will include the contact information (phone and website) for each store.
Xano's add-ons feature is a powerful tool that allows you to extend the data of a single request, similar to how GraphQL works. By combining related data from multiple tables, you can improve your application's performance and flexibility. Whether you're a no-code enthusiast, citizen developer, traditional developer, or working for a startup or small business, add-ons can help you build more efficient and feature-rich applications with Xano.
This transcript was AI generated to allow users to quickly answer technical questions about Xano.
I found it helpful
I need more support