add draft graphql server tests

This commit is contained in:
Grahame Grieve 2019-06-16 05:30:43 +10:00
parent 8798c5cf58
commit 422c659bb3
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{
"@type" : "graphql-server-tests",
"tests" : {
"simple" : {
"description" : "Just a simple test of the basic graphQL engine: a simple query on a known patient (example, from the spec)",
"url" : "/Patient/example/$graphql?query={identifier{system,value}active,name{text,given,family}",
"output" : {
"data" : {
"name":[{
"given":["Peter","James"],
"family":"Chalmers"
},{
"given":["Jim"]
},{
"given":["Peter","James"],
"family":"Windsor"
}]
}
}
}
}
}