How to retrieve all the records using ArcQL

In the previous post, we have seen how to search data starting with a prefix.

Now we will check how to retrieve all the records using Match All query.

  • Match All query returns all the data from all the fields.
  • It has the wildcard value “*”.

We will work with the same schema used earlier.

type arcqlObject {
    str: String
    int: Int
}

Sample Query

Let’s search all the data from arcqlObject data type.

{
  find(type: arcqlObject, arcql: "*") {
    edges {
      node {
        ... on arcqlObject {
          str
          int
          hypi {
            id
          }
        }
      }
      cursor
    }
  }
}
#result
{
  "data": {
    "find": {
      "edges": [
        {
          "node": {
            "str": "hypi",
            "int": 1,
            "hypi": {
              "id": "01FJGS5P4C2V0AZ9BGPV6BXGEG"
            }
          },
          "cursor": "01FJGS5P4C2V0AZ9BGPV6BXGEG"
        },
        {
          "node": {
            "str": "low code",
            "int": 2,
            "hypi": {
              "id": "01FJGS5P4DBC3HVS5EESRD63ZY"
            }
          },
          "cursor": "01FJGS5P4DBC3HVS5EESRD63ZY"
        },
        {
          "node": {
            "str": "easy to use backend",
            "int": null,
            "hypi": {
              "id": "01FJGS5P4ECE8BSG10FVJ1865V"
            }
          },
          "cursor": "01FJGS5P4ECE8BSG10FVJ1865V"
        }
      ]
    }
  }
}

Check the POSTMAN collection for the match all query in different programming languages! Click </> and choose the programming language of your choice.
Don’t forget to insert your own Authorization key and Hypi Domain under Headers to test the results!

Run in Postman