checkpoint-labs / checkpoint

Checkpoint is a library for indexing data of Starknet contracts.
https://checkpoint.box
MIT License
55 stars 23 forks source link

fix: read fieldType from currently processed type #321

Closed Sekhmet closed 2 weeks ago

Sekhmet commented 2 weeks ago

When using nested where filter we should read field return type from that nested type, not top-level type.

Test plan

{
    proposals(
    where: {
      cancelled: false
      space_in: [
        "0x03ced313394107c43a2f36b63262c00a6422231ac229dc4cedd0d9928d8c3c5f"
      ]
      metadata_: { title_contains_nocase: "" }
    }
  ) {
    id
  }
}