diff --git a/README-DEV.md b/README-DEV.md index 3e07c17..b79df1d 100644 --- a/README-DEV.md +++ b/README-DEV.md @@ -23,3 +23,57 @@ Now it is possible to run queries against the system, for example: } ``` Which will return a list of proposals for the instrument with the ID of 4. + +# Updating the example data + +The file `ymir_data_example.json` can be updated by running the following query and copying the data over: +``` +query { + proposals(filter: { instrumentId: 4 }) { + totalCount + proposals { + primaryKey + title + proposalId + users { + firstname + lastname + organisation + } + proposer { + firstname + lastname + organisation + } + samples { + title + id + questionary { + steps { + fields { + value + dependencies { + dependencyNaturalKey + questionId + } + question { + question + naturalKey + } + } + } + } + } + } + } +} +``` + +The data has a leading `data` tag which needs to be removed along with the corresponding brackets. +``` +{ + "data": { <--- this needs removing + "proposals": { + "totalCount": 19, + "proposals": [ +```