Skip to content

Commit

Permalink
edit: move legacy content field to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyspiro committed Jun 28, 2023
1 parent e0f28e0 commit ad34e78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ Use the `objects.insertOne()` method to create an Object.
await cosmic.objects.insertOne({
title: 'Blog Post Title',
type: 'posts',
content: 'Here is the blog post content... still learning',
metadata: {
content: 'Here is the blog post content... still learning',
seo_description: 'This is the blog post SEO description.',
featured_post: true,
tags: ['javascript', 'cms'],
Expand All @@ -106,8 +106,8 @@ Use the `objects.updateOne()` method to update an Object by specifying the Objec

```jsx
await cosmic.objects.updateOne('5ff75368c2dfa81a91695cec', {
content: 'This is the updated blog post content... I got it now!',
metadata: {
content: 'This is the updated blog post content... I got it now!',
featured_post: false,
},
});
Expand Down

0 comments on commit ad34e78

Please sign in to comment.