![]() ![]() The Docs button expands the Documentation Explorer pane on the right-hand side of the page. The results that display in this pane are read-only, so you cannot accidentally edit or delete them. GraphiQL highlights fields, arguments, syntax, and other important elements in the results pane to make the results easier to read. This is where GraphiQL displays the results of the most recently executed query or mutation, in JSON format.Īlternatively, if your query or mutation is not properly formed, the results pane displays the errors that are causing the query or mutation to fail. The right-hand pane in GraphiQL is the results pane. Click the Query Variables header to expand it.įor more information about using variables, see the section on Variables. When you first access GraphiQL, the Query Variables pane might be collapsed at the bottom of the page. You should write variables in JSON format. This is where you can define variables that you are using in your query or mutation. The lower-left pane in GraphiQL is the query variables pane. Ctrl + Enter: Execute the query or mutation.Shift + Ctrl + C: Copy the query or mutation.Shift + Ctrl + M: Merge the query or mutation.Shift + Ctrl + P: Prettify the query or mutation.You can use the following keyboard shortcuts in the query pane:.This feature enables you to share your query or mutation publicly or with colleagues for distribution or debugging purposes. It preserves every part of your entry in the URL, including whitespace, comments, and invalid syntax or elements. As you edit a query or mutation, GraphiQL automatically updates the URL that appears in the address bar to reflect what you have entered.GraphiQL ignores any lines that start with # when executing an operation. If you need to insert notes or comments in a query or mutation, add them on a line that starts with the # symbol above or below the query or mutation.GraphiQL highlights fields, arguments, syntax, and other important elements in the query pane to make the query or mutation easier to read.Additionally, GraphiQL automatically validates your query or mutation as you type, highlighting any errors in syntax or other elements that would cause your query or mutation to fail.As you type, GraphiQL intuitively suggests potential fields, arguments, and syntax based on what you've already written and your defined schema. ![]() The query pane includes several features to help you properly formulate your queries and mutations: This is where you write GraphQL queries and mutations. ![]() The left-hand pane in GraphiQL is the query pane. The following sections describe all of the elements you can interact with in the GraphiQL user interface. The GraphiQL user interface enables you to write and execute operations, define variables, view operation results, and explore your schema, among other things. GraphiQL is not maintained by ScienceLogic. To access the GraphiQL interface, type the URL or IP address for SL1 in a browser, add /gql to the end of the URL or IP address, and press Enter. Unlike the SL1 REST API, all requests to the GraphQL API on a given SL1 system use the same URI. GraphiQL is a browser-based user interface for interactively exploring the capabilities of, and executing queries against, a GraphQL API. See the End User License Agreement (EULA) for more information. There is no written or implied guarantee that information contained herein will work for all third-party variants. ScienceLogic makes every attempt to maintain accurate technical information and cannot be held responsible for defects or changes in third-party vendor software. Some of the configuration information contained herein pertains to third-party vendor software that is subject to change without notice to ScienceLogic. ScienceLogic provides this documentation for the convenience of ScienceLogic customers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |