Skip to content

Latest commit

History

History
5 lines (4 loc) 路 435 Bytes

2021-03-09.md

File metadata and controls

5 lines (4 loc) 路 435 Bytes
publish_date
2021-03-09
  • Learning making client side GQL mutations using the apollo useMutation hook. First argument is a string of the GQL query. It also another options object of which one of the properties is refetchQueries. here another GQL query can provided which which be executed after the mutation has completed. This is useful as some mutation may not return any data so a follow on query is often required.