GraphQL API
Organization API
Organization guide
Search queries
Filter connections with PackCloud's structured search syntax.
Basic syntax
Operations that accept a query argument list their supported fields in the reference. Pass the search expression as a GraphQL variable.
query Orders($query: String!, $first: Int!) {
orders(query: $query, first: $first) {
edges { node { id reference } }
}
}
{
"query": "reference:PC-100*",
"first": 25
}Operators
field:valueExact matchfield:>valueGreater than; also supports <, >= and <=field:prefix*Starts with a valuefield:*Field or relation exists-field:valueNegate a term; NOT field:value is equivalenta:1 AND b:2Combine terms; OR is also supportedAND, OR, and NOT are uppercase. When combining AND and OR, use explicit parentheses and keep one connective type inside each group.Values with spaces
Wrap values containing spaces in single or double quotes, for example name:"North Dock". Supported fields and value formats differ per operation; use the filter table shown beside itsquery argument.