Skip to content

Commit 9af6480

Browse files
committed
Refactor time machine status query documentation for clarity and conciseness
1 parent 9175057 commit 9af6480

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

spec/Section 2 -- Language.md

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -300,43 +300,33 @@ Request the current status of a time machine and its operator.
300300
This operation retrieves the latest information about a specific time machine,
301301
including its model, last maintenance date, and the operator currently assigned.
302302
303-
You can also check the status for a particular year, to see if the time machine
304-
was scheduled for travel or maintenance at that time.
303+
You can also check the status for a particular year.
304+
305+
**Warning:** certain years may trigger an anomaly in the space-time continuum. Use with caution!
305306
"""
306307
query GetTimeMachineStatus(
307308
"The unique serial number of the time machine to inspect."
308309
$machineId: ID!
309-
310-
"""
311-
The year to check the status for.
312-
**Warning:** Requesting status information for certain years may trigger an anomaly in the space-time continuum.
313-
"""
310+
"The year to check the status for."
314311
$year: Int
315312
) {
316313
timeMachine(id: $machineId) {
317314
...TimeMachineDetails
318-
operator {
319-
...OperatorDetails
320-
}
321315
status(year: $year)
322316
}
323317
}
324318

325319
"""
326-
Time machine details.
320+
Details about a time machine and its operator.
327321
"""
328322
fragment TimeMachineDetails on TimeMachine {
329323
id
330324
model
331325
lastMaintenance
332-
}
333-
334-
"""
335-
Basic information about a time machine operator.
336-
"""
337-
fragment OperatorDetails on Operator {
338-
name
339-
licenseLevel
326+
operator {
327+
name
328+
licenseLevel
329+
}
340330
}
341331
```
342332

0 commit comments

Comments
 (0)