Skip to content

Commit c2cb6d8

Browse files
authored
Correct query/response syntax in readme (#6)
1 parent 413434c commit c2cb6d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ beamline.
9191
Get the visit directory for a beamline and visit
9292

9393
##### Query
94-
```json
94+
```graphql
9595
{
9696
paths(beamline: "i22", visit: "cm12345-6") {
9797
directory
@@ -142,7 +142,7 @@ Get the current configuration values for the given beamline
142142

143143
##### Query
144144

145-
```
145+
```graphql
146146
mutation {
147147
scan(beamline: "i22", visit: "cm12345-2", subdirectory: "sub/tree") {
148148
scanFile
@@ -170,14 +170,14 @@ mutation {
170170
"name": "det2",
171171
"path": "sub/tree/i22-20840-det2"
172172
}
173-
]"
173+
]
174174
}
175175
}
176176
```
177177

178178
#### configure
179179
##### Query
180-
```
180+
```graphql
181181
mutation {
182182
configure(beamline: "i11", config: {
183183
visit:"/tmp/{instrument}/data/{year}/{visit}"
@@ -201,7 +201,7 @@ mutation {
201201
"scanTemplate": "{subdirectory}/{instrument}-{scan_number}",
202202
"detectorTemplate": "{subdirectory}/{instrument}-{scan_number}-{detector}",
203203
"latestScanNumber": 12345
204-
}``
204+
}
205205
}
206206
```
207207

0 commit comments

Comments
 (0)