Skip to content

graphql-utils/store

Repository files navigation


@graphql-utils/store

In-memory data store for writing stateful GraphQL mocks.


Warning: This library is still in early development and the API is subject to change. Use at your own risk.

Introduction

@graphql-utils/store is an in-memory data store for writing stateful GraphQL mocks. It uses your GraphQL schema to validate data and establish relations between different types. It is handy for testing client-side applications that rely on GraphQL APIs and allows you to mimic your API's real-world behavior. It lets you write cleaner tests by decoupling API mocks from test cases.

Features

  • Immutable
  • Synchronous
  • Written in typescript
  • Supports types relations
  • Works in any Javascript environment (Browser, Node, Deno, etc.)
  • Validates data against your GraphQL schema (soon)
  • Mutation Events (soon)
  • Mutation Hooks (soon)

Check out the documentation to learn more.

License

Distributed under the MIT license.

About

In-memory data store for writing stateful GraphQL mocks.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages