Skip to content

Commit

Permalink
chore(docs): add GraphQL section
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed Nov 28, 2018
1 parent c78600b commit bed33f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Read [Getting started with Pact] for more information for beginners.
- [Match based on type](#match-based-on-type)
- [Match based on arrays](#match-based-on-arrays)
- [Match by regular expression](#match-by-regular-expression)
- [GraphQL API](#graphql-api)
- [Tutorial (60 minutes)](#tutorial-60-minutes)
- [Examples](#examples)
- [HTTP APIs](#http-apis)
Expand Down Expand Up @@ -656,6 +657,14 @@ provider.addInteraction({
});
```

## GraphQL API

GraphQL is simply an abstraction over HTTP and may be tested via Paact. There are two wrapper APIs available for GraphQL specific testing: `GraphQLInteraction` and `ApolloGraphQLInteraction`.

These are both lightweight wrappers over the standard DSL in order to make GraphQL testing a bit nicer.

See the [history](https://github.com/pact-foundation/pact-js/issues/254#issuecomment-442185695), and below for an example.

## Tutorial (60 minutes)

Learn everything in Pact JS in 60 minutes: https://github.com/DiUS/pact-workshop-js
Expand Down

0 comments on commit bed33f9

Please sign in to comment.