Skip to main content

Validate Queries

The validate and optimize j1ql endpoints are used to validate j1ql queries.

Validate queries

The validate endpoint takes in an array of queries sent as a json object in the request body. It returns an array of objects containing the query and a boolean flag indicating whether the query is valid or not.

Sample request

POST /j1ql/validate
{
"queries": [
"Find Person as p that relates to User"
]
}

Sample response

[
{
"query": "Find Person as p that relates to User",
"valid": true
}
]