query ($cursor: String, $query: String!, $lineItemsCursor: String) {
orders(first: 5, sortKey: CREATED_AT, query: $query, after: $cursor) {
pageInfo {
hasNextPage
}
edges {
cursor
node {
id
createdAt
lineItems(first: 50, after: $lineItemsCursor) {
pageInfo {
hasNextPage
}
edges {
cursor
node {
id
quantity
variant {
id
displayName
sku
inventoryQuantity
}
}
}
}
}
}
}
}
Above is the query I am using to query orders using GQL. It works when I set the query string to “created_at:>=2022-01-01” but when I try “created_at:>=2022-01-01 and created_at:<=2022-01-31” I get 0 results. Any insight into what I am doing wrong with the query string would be helpful.