GraphQL
0
0
2018.1
SAMPLES
./
SAMPLES
GraphQL.REST.Main
/graphiql
SAMPLES
C:\InterSystems\GraphiQL\
Query and Result
Queries can be simple and complex for several sets of data
{
Sample_Person{
Name
DOB
FavoriteColors
Office {
City
State
Street
Zip
}
}
Sample_Company{
Mission
Name
Revenue
}
}
Filtering
At the moment, only strict equality is supported:
{
Sample_Person(id: 116){
id
Name
DOB
FavoriteColors
Home {
City
State
Street
Zip
}
Office {
City
State
Street
Zip
}
}
}
Pagination
Pagination is supported through 4 functions that can be combined to achieve the necessary result:
{
Sample_Employee(after: 120, before: 123){
id
Name
}
Sample_Person(first: 2){
id
Home {
City
State
Street
Zip
}
}
Sample_Company(last: 3){
id
Name
}
}