Defining a mutation is similarly straight forward.
Notice how the
createLink method, that will act as the resolver function for the
createLink mutation, takes arguments of the name and type analogous to those defined in the mutation itself.
Restart Jetty and test out your spiffy new mutation using GraphiQL:
allLinks to verify your new link has indeed been persisted: