Skip to content

Commit 9e5b384

Browse files
Wilson, JamesWilson, James
Wilson, James
authored and
Wilson, James
committed
Readme/package bump
1 parent 39218c2 commit 9e5b384

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

README.md

+3-13
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ yarn run example:graphql // A more complex example involving both REST and Graph
8383
Definitions tell the seeder information about each resource defined in the persona. Think of each definition as each one of your REST APIs.
8484
- **method** (string|function) - HTTP method, defaults to "post"
8585
- **endpoint** (string|function) _required_ - Resource URL
86-
- **transport** (string|function) - "rest" or "graphql", defaults to "rest"
8786
- **headers** (object|function) - All headers required for the request
8887
- **body** (object|function) - Default request body, props can be overridden by the persona (_REST ONLY_)
88+
- **query** (string|function) - GraphQL query string (_GRAPHQL ONLY_)
8989
- **variables** (object|function) - Default GraphQL query/mutation variables (_GRAPHQL ONLY_)
9090
- **throttle** (number|function) - Throttle requests for this definition (some services can't handle concurrent requests)
9191
```javascript
@@ -113,7 +113,7 @@ export default {
113113
# Personas
114114
A test suite will have a collection of personas to test different scenarios and use cases. Persona data is modeled as parent-child relationships.
115115
- **type** (string) _required_ - Resource type, must have a definition with the same name
116-
- **params** (object|string) - Request body _OR_ GraphQL query/mutation string
116+
- **params** (object|string) - Request body _OR_ GraphQL variables
117117
- **children** (array) - An array of children resources which will be seeded after the parent is finished.
118118
- **childrenTemplate** (object) - A template for dynamically generating children.
119119
- **childrenCount** (number) - The number of children to generate, using the template
@@ -130,17 +130,7 @@ A test suite will have a collection of personas to test different scenarios and
130130
},
131131
"children": [
132132
{
133-
"type": "client",
134-
"params": `
135-
mutation ($menuId ID) {
136-
addMenuItem(name: "Hamburger", price: 10, menuId: $menuId) {
137-
id,
138-
name,
139-
price,
140-
menuId
141-
}
142-
}
143-
`
133+
"type": "client"
144134
}
145135
]
146136
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "saloon",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "An E2E Test Seeder for Enterprise Web Applications",
55
"main": "dist/saloon.js",
66
"module": "dist/module/main.js",

0 commit comments

Comments
 (0)