functionland / fula-archived

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
https://fx.land
MIT License
4 stars 0 forks source link

Graph Protocol: Cannot convert undefined or null to object #238

Open ghorbani-m opened 2 years ago

ghorbani-m commented 2 years ago

Query :

  query {
    read(input:{
      collection:"assetsMetas",
    }){
      name
      jwe
      date
    }
  } 

I got this error:

{"error": {"extensions": {}, "locations": [[Object]], "message": "Cannot convert undefined or null to object", "path": ["read"]}}

Solution

I need to add filter in the body of query:

  query {
    read(input:{
      collection:"assetsMetas",
      filter:{} // <------ Added here
    }){
      name
      jwe
      date
    }
  }