Add GQL where filter and nested order by params based on entity fields (#472)

* Add where filter equals fields based on entity fields

* Add different where filter operations for entity fields

* Add nested where filter for relation fields and filter params or & and

* Remove filters not required for derived fields

* Add nested order by params in schema

* Throw error on trying to sort by array or derived type fields

* Handle array fields while generating order by and where clauses

* Upgrade package versions

---------

Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
2023-11-16 12:38:47 +05:30
committed by GitHub
co-authored by prathamesh
parent 5b95335fde
commit 3e898914ba
15 changed files with 180 additions and 51 deletions
+5 -5
View File
@@ -1,10 +1,10 @@
{
"name": "@cerc-io/graph-node",
"version": "0.2.71",
"version": "0.2.72",
"main": "dist/index.js",
"license": "AGPL-3.0",
"devDependencies": {
"@cerc-io/solidity-mapper": "^0.2.71",
"@cerc-io/solidity-mapper": "^0.2.72",
"@ethersproject/providers": "^5.4.4",
"@graphprotocol/graph-ts": "^0.22.0",
"@nomiclabs/hardhat-ethers": "^2.0.2",
@@ -51,9 +51,9 @@
"dependencies": {
"@apollo/client": "^3.3.19",
"@cerc-io/assemblyscript": "0.19.10-watcher-ts-0.1.2",
"@cerc-io/cache": "^0.2.71",
"@cerc-io/ipld-eth-client": "^0.2.71",
"@cerc-io/util": "^0.2.71",
"@cerc-io/cache": "^0.2.72",
"@cerc-io/ipld-eth-client": "^0.2.72",
"@cerc-io/util": "^0.2.72",
"@types/json-diff": "^0.5.2",
"@types/yargs": "^17.0.0",
"bn.js": "^4.11.9",