cncf / cncf/landscape-graph

Implement autogenerated mocks for GraphQL API from schema

Open
#103 4 comments 0 reactions 0 assignees View on GitHub
data e2-days good first issue help wanted
Dominant language
Jupyter Notebook
Stars
55
Forks
19
PR merge metrics
No merged PRs in 30d

Description

https://www.graphql-tools.com/docs/mocking#addmockstoschema

> [Mocking](https://www.graphql-tools.com/docs/mocking#mocking)
>
> The strongly-typed nature of a GraphQL API lends itself extremely well to mocking. This is an important part of a GraphQL-First development process, because it enables frontend developers to build out UI components and features without having to wait for a backend implementation.
>
> Even with a backend that is already built, mocking allows you to test your UI without waiting on slow database requests or building out a component harness with a tool like React Storybook.
> Default mock [example](https://www.graphql-tools.com/docs/mocking#default-mock-example)
>
> Let's take a look at how we can mock a GraphQL schema with just one line of code, using the default mocking logic you get out of the box with graphql-tools.
>
> To start, let's grab the schema definition string from the makeExecutableSchema example [in the "Generating a schema" article](https://www.graphql-tools.com/docs/generate-schema/#example).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.