Skip to content

Commit ff64d01

Browse files
authored
Update 1-creating-a-graphql-server-project.md (#87)
Fixed broken relay mutation pattern link linking to latest version where the document still exists i.e. v10.1.3. The document no longer exist in v 11 and 12
1 parent 3a85bec commit ff64d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/1-creating-a-graphql-server-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ Commands Explained
223223

224224
So, far we have added the Query root type to our schema, which allows us to query speakers. However, at this point, there is no way to add or modify any data. In this section, we are going to add the root Mutation type to add new speakers to our database.
225225

226-
> For mutations we are using the [relay mutation pattern](https://relay.dev/docs/en/graphql-server-specification.html#mutations) which is commonly used in GraphQL.
226+
> For mutations we are using the [relay mutation pattern](https://relay.dev/docs/v10.1.3/graphql-server-specification/#mutations) which is commonly used in GraphQL.
227227

228228
A mutation consists of three components, the **input**, the **payload** and the **mutation** itself. In our case we want to create a mutation called `addSpeaker`, by convention, mutations are named as verbs, their inputs are the name with "Input" appended at the end, and they return an object that is the name with "Payload" appended.
229229

0 commit comments

Comments
 (0)