Diana
  • Quick start
  • Client
    • Simple query
    • Query
    • Mutations
    • Change serverUrl
    • Change headers
    • Change serverAuth
    • Query get
    • Link
    • Validating query
  • Server
    • Schemas and Types
    • Queries and Mutations
    • Execution
    • Tools
  • Website
  • Examples
  • Code
Powered by GitBook
On this page

Was this helpful?

  1. Client

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\"
PreviousLinkNextSchemas and Types

Last updated 3 years ago

Was this helpful?