diff --git a/docs/composedb/guides/data-interactions/mutations.mdx b/docs/composedb/guides/data-interactions/mutations.mdx index 342ab6ec..435e967d 100644 --- a/docs/composedb/guides/data-interactions/mutations.mdx +++ b/docs/composedb/guides/data-interactions/mutations.mdx @@ -65,13 +65,13 @@ Users will generate data as they interact with your app. Your app needs to perfo ```graphql # Create post -mutation CreateNewPost($i: CreatePostInput!){ - createPost(input: $i){ - document{ - id - title - text - } +mutation CreateNewPost($i: CreatePostInput!) { + createPost(input: $i) { + document{ + id + title + text + } } } @@ -108,7 +108,7 @@ mutation UpdatePost($i: UpdatePostInput!) { document { id title - text + text } } }