docs: add link to manage metadata section in OAS and API reference (#13102)
This commit is contained in:
@@ -9674,7 +9674,7 @@ For example, if you want to re-use brands across different products, it's better
|
||||
|
||||
### How Medusa Updates JSON Properties
|
||||
|
||||
Consider a Brand Module with a `Brand` data model as shown [in the previous section](#what-are-json-properties). The [module's service](https://docs.medusajs.com/learn/fundamentals/modules#2-create-service/index.html.md) will extend `MedusaService`, which generates methods like [updateBrands](https://docs.medusajs.com/resources/service-factory-reference/methods/update/index.html.md) to update a brand.
|
||||
Consider a Brand Module with a `Brand` data model as shown [in the previous section](#what-is-a-json-property). The [module's service](https://docs.medusajs.com/learn/fundamentals/modules#2-create-service/index.html.md) will extend `MedusaService`, which generates methods like [updateBrands](https://docs.medusajs.com/resources/service-factory-reference/methods/update/index.html.md) to update a brand.
|
||||
|
||||
When you pass a JSON property in the `updateBrands` method, Medusa will merge the provided JSON object with the existing one in the database. So, only the properties you pass will be updated, and the rest will remain unchanged.
|
||||
|
||||
@@ -9834,6 +9834,12 @@ The brand record will now have the `metadata` property updated to remove the `is
|
||||
}
|
||||
```
|
||||
|
||||
### Manage JSON Properties in API Routes
|
||||
|
||||
The instructions above also apply when managing JSON properties in API routes, since they typically use a service's `update` method under the hood.
|
||||
|
||||
Refer to the [API reference](https://docs.medusajs.com/api/store#manage-metadata) to learn more about managing JSON properties, such as `metadata`, in API routes.
|
||||
|
||||
|
||||
# Manage Relationships
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Medusa
|
||||
|
||||
> Medusa is a digital commerce platform with a built-in framework for customization. When you install Medusa, you get a fully fledged commerce platform with all the features you need to get off the ground. However, unlike other platforms, Medusa is built with customization in mind. You don't need to build hacky workarounds that are difficult to maintain and scale. Your efforts go into building features that bring your business's vision to life.
|
||||
> Medusa is a digital commerce platform with a built-in Framework for customization. When you install Medusa, you get a fully fledged commerce platform with all the features you need to get off the ground. However, unlike other platforms, Medusa is built with customization in mind. You don't need to build hacky workarounds that are difficult to maintain and scale. Your efforts go into building features that bring your business's vision to life.
|
||||
|
||||
Medusa ships with three main tools:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user