Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mutations.mdx #18

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/composedb/guides/data-interactions/mutations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ mutation UpdatePost($i: UpdatePostInput!) {
Where:

- You will notice that the naming of the mutation is `UpdatePost` which indicates that this mutation will update existing records.
- `updatePost` binding has a prefix `update` which is very defines the behaviour of your mutation - updating the existing data instead of creating new records.
- `updatePost` binding has a prefix `update` which defines the behaviour of your mutation - updating the existing data instead of creating new records.
- Finally, just like before, we define the variables that should be passed to update record. Here, very important difference is that you will be required to specify all variables, including the stream id so that ComposeDB would know which record should be updated.

### Update Options
Expand All @@ -143,4 +143,4 @@ Currently, data deletion is not supported. All ComposeDB data transactions are t
## Next Steps
At this stage, you should have a strong understanding of how to create applications using ComposeDB and interact with the data that is stored on the network. Congrats!

If you need more inspiration for what can be built on ComposeDB, check out the [**example applications**](https://threebox.notion.site/threebox/Ceramic-Ecosystem-Directory-a3a7a58f81544d33ad3feb84368775d4) built by Ceramic community members.
If you need more inspiration for what can be built on ComposeDB, check out the [**example applications**](https://threebox.notion.site/threebox/Ceramic-Ecosystem-Directory-a3a7a58f81544d33ad3feb84368775d4) built by Ceramic community members.