Open yangwao opened 6 months ago
Hello @yangwao, Can your colleague - guess @preschian give the parameters that were used?
Null entity
We can do custom resolvers, nftentites is a native query
where to improve
Currently our frontend is abusing indexer with bad queries
This one is mostly coming from Novawallet. ref: https://github.com/kodadot/ops-internal/issues/1460#issuecomment-2015283988
Also this one ?
[
{
"message": "Variable \"$orderBy\" got invalid value \"volume_DESC,supply_ASC\"; Value \"volume_DESC,supply_ASC\" does not exist in \"CollectionEntityOrderByInput\" enum. Did you mean the enum value \"volume_DESC_NULLS_LAST\"?",
"extensions": {
"code": "BAD_USER_INPUT",
"exception": {
"stacktrace": [
"GraphQLError: Variable \"$orderBy\" got invalid value \"volume_DESC,supply_ASC\"; Value \"volume_DESC,supply_ASC\" does not exist in \"CollectionEntityOrderByInput\" enum. Did you mean the enum value \"volume_DESC_NULLS_LAST\"?",
" at /squid/node_modules/graphql/execution/values.js:116:15",
" at coerceInputValueImpl (/squid/node_modules/graphql/utilities/coerceInputValue.js:131:9)",
" at coerceInputValueImpl (/squid/node_modules/graphql/utilities/coerceInputValue.js:54:14)",
" at coerceInputValueImpl (/squid/node_modules/graphql/utilities/coerceInputValue.js:78:13)",
" at coerceInputValue (/squid/node_modules/graphql/utilities/coerceInputValue.js:37:10)",
" at _loop (/squid/node_modules/graphql/execution/values.js:109:69)",
" at coerceVariableValues (/squid/node_modules/graphql/execution/values.js:121:16)",
" at getVariableValues (/squid/node_modules/graphql/execution/values.js:50:19)",
" at buildExecutionContext (/squid/node_modules/graphql/execution/execute.js:203:61)",
" at validate (/squid/node_modules/@subsquid/openreader/lib/util/execute.js:70:51)"
]
}
}
}
]
That one is a different case. You can check on the "Insights" tab from the dashboard.
This compares all requests vs smartphones only on ahk one day.
all request | smartphone only |
---|---|
Please see how many "Passes" requests are different. Most of them come from Novawallet.
How to reproduce:
Return empty results always "PASS"
From the chat above, there are two workarounds.
NullType
{
"currentOwner_eq": ""
}
That should be never called :), Guess some composable is calling query like this
That should be never called :),
that one is only for example. You can change that with another address that doesn't have nft will get the same results
To improve cache at Stellate