yes, but I need to be able to get data from around 1000-2000 orders. So I need to be able to use your first query example: query($cid :Int!) {
useCompany(no: $cid)
{
order(
first: 100
filter: {changedDate:{_gte: 20210101}},
unoptimized :true
)
{
totalCount
items {
... with pageinfo on order so that I can loop through this 2000 orders with ex 100 orders at the time: query($cid :Int!) {
useCompany(no: $cid)
{
order(
first: 100
filter: {changedDate:{_gte: 20210101}},
unoptimized :true
)
{
"pageInfo":
{
"hasNextPage": false,
"startCursor": "Mw==",
"endCursor": "Ng=="
}
totalCount
items {
... The query and import script will be to time consuming if I must loop through the joinDown tables for each order table loop... Another solution would be to query each tables in separate queries, but I will still need to join them with the order table to track lastchanged date.
... View more