> For the complete documentation index, see [llms.txt](https://neomatrixcode.gitbook.io/diana/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neomatrixcode.gitbook.io/diana/client/validating-query.md).

# Validating query

### Validating query

It is possible to validate the query locally before sending the request, only basic validations are carried out.

```
query = """
        {
          neomatrix{
            nombre
            linkedin
          }
        }
        """
r = Queryclient("https://neomatrix.herokuapp.com/graphql",query, check = true)
```

result:

```
"ok"
```

```
 query = """
         {
         neomatrix {
           nombre
           linkedin
         }

         """
r = Queryclient("https://neomatrix.herokuapp.com/graphql",query, true)
#r = client.Query(query, check = true)
```

result:

```
ERROR: Diana.GraphQLError("{\"errors\":[{\"locations\": [{\"column\": 10,\"line\": 6}],\"message\"
```
