DEV Community

Leigh Halliday
Leigh Halliday

Posted on

 

Mocking GraphQL Queries in React & Apollo (Video)

All about how to mock your GraphQL queries for tests. It can be done using static mocks or dynamic (auto) mocks. Source code available here: https://github.com/leighhalliday/apollo-generating-types

Using Static Mocks

Using Dynamic / Auto Mocks

Top comments (0)

Timeless DEV post...

Git Concepts I Wish I Knew Years Ago

The most used technology by developers is not Javascript.

It's not Python or HTML.

It hardly even gets mentioned in interviews or listed as a pre-requisite for jobs.

I'm talking about Git and version control of course.

One does not simply learn git