Skip to content

Commit

Permalink
Merge pull request AdobeDocs#206 from AdobeDocs/jh_mutations
Browse files Browse the repository at this point in the history
chained mutations explanation
  • Loading branch information
jhadobe authored Apr 24, 2024
2 parents 50cc94e + ae86dcd commit eb23041
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pages/gateway/work-with-mesh.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,3 +210,9 @@ Due to the limitations of API Mesh, responses contain both the newly created ali
}
}
```

## Chained mutations

When you query a mesh using chained mutations, the mesh makes a separate call to the source for each mutation. This happens because GraphQL requests execute when the GraphQL server receives them, instead of proxying the calls. Because API Mesh supports multiple sources, it evaluates batched mutations and separates the information based on the source it is associated with.

These mutations are executed sequentially, calling one source after the other. When you call a source directly, it will only need one API call, but it will execute the batch mutations sequentially by calling their respective resolvers. These calls are more overt in API Mesh, because they are made by a network call, instead of an internal call. This means you will see multiple calls for chained mutations.

0 comments on commit eb23041

Please sign in to comment.