‎14-04-2020 04:10 PM - edited ‎15-04-2020 12:18 PM
When building graphQL query it can be convenient to use auto-completion to navigate the available information in the schema. Thus, useful to write the graphQL to read/write in the REST API.
For instance, for ITPM to know which MetaClass, MetaAttributes or MetaAssociation are available ?
If you use a tool like GraphiQL the auto completion is native and will be displayed while you are writing. You can also navigate the embedded documentation on the schema to get additional information on the fields available.
For instance : for an enumeration field you can access the value of the enum.
|
|
In this tool use :
While GraphiQL meet its use case it is not often used by developer who will prefer tools like Postman.
The GraphQL query language has its own schema definition based on a format called "SDL". This SDL format file can be downloaded via the API itself. Once retrieved it can be used in tools that can parse this standard.
For instance, Postman is a developer tool that can handle GraphQL and SDL schema. To access the SDL file follow this steps :
|
|
|
You will find attached a sample for graphQL