From dfd57dec7974f79e5955c857d873f3f9d0818a00 Mon Sep 17 00:00:00 2001 From: JulissaDantes Date: Wed, 7 Feb 2024 09:26:10 -0400 Subject: [PATCH] Update mutations.mdx format --- .../guides/data-interactions/mutations.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 } } }