---
title: "Discussion on \"Mocking GraphQL Operations: Hand-Wired Routes vs a Schema-Driven Mock\" | Hashnode"
description: "Discussion on \"Mocking GraphQL Operations: Hand-Wired Routes vs a Schema-Driven Mock\". GraphQL mocks should resolve fields from the schema, not return fixed objects, so responses match the operation's actual selection."
url: "https://hashnode.com/posts/mocking-graphql-operations-routes-vs-schema/6ae83d50d821fee040ed5ce5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Mocking GraphQL Operations: Hand-Wired Routes vs a Schema-Driven Mock](https://blogs.powerduck.com/mocking-graphql-operations-routes-vs-schema?utm_source=hashnode&utm_medium=feed)

GraphQL mocks should resolve fields from the schema, not return fixed objects, so responses match the operation's actual selection.

Nov 2 · 5 min read · blogs.powerduck.com  
Read the article

-   [#mocking](https://hashnode.com/tag/mocking)
-   [#api](https://hashnode.com/tag/api)
-   [#developers](https://hashnode.com/tag/developers)

## Written by

[Powerduck](https://hashnode.com/@powerduck)

@powerduck · hon

  
[View profile](https://hashnode.com/@powerduck)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
