/* A search term entered in the search box and /* /* multiple filters selected on the record */ type!Query( /* This gives a syntax error if single quotes aren't used */ 'logicalExpression|filter|search': { operator: "AND", 'logicalExpression|filter|search': { /* I guess there can only be one search type here */ type!Search( /* This is whatever the user typed into the search box */ searchQuery: "wind" ), /* There can be any number of query filters, each represents */ /* a facet option that has been selected by the user */ type!QueryFilter( /* the field to filter on */ field: "status", /* The operator used by the filter (in, not in, =, >, */ /* includes etc are presumably all possible options) */ operator: "=", /* The value to filter with - could be text, integer etc */ value: "Active", /* no idea what this does */ valueExpression: null ), type!QueryFilter( /* the field to filter on */ field: "center", /* The operator used by the filter (in, not in, =, >, */ /* includes etc are presumably all possible options) */ operator: "=", /* The value to filter with - could be text, integer etc */ value: "Ames Research Center", /* no idea what this does */ valueExpression: null ) } }, /* It seems like we need "fake" pagingInfo */ pagingInfo: a!pagingInfo( startIndex: 1, batchSize: 100, sort: a!sortInfo( field: "facility" ) ) )