* UMD GraphiQL Example * * This is a simple example that provides a primitive query string parser on top of GraphiQL props * It assumes a global umd GraphiQL, which would be provided by an index.html in the default example * * It is used by: * - the netlify demo * - end-to-end tests * - vite
| 17 | */ |
| 18 | |
| 19 | interface Params { |
| 20 | query?: string; |
| 21 | variables?: string; |
| 22 | headers?: string; |
| 23 | confirmCloseTab?: 'true'; |
| 24 | onPrettifyQuery?: 'true'; |
| 25 | forcedTheme?: 'light' | 'dark' | 'system'; |
| 26 | defaultQuery?: string; |
| 27 | defaultTheme?: Theme; |
| 28 | defaultHeaders?: string; |
| 29 | } |
| 30 | |
| 31 | // Parse the search string to get url parameters. |
| 32 | const parameters: Params = Object.fromEntries( |
nothing calls this directly
no outgoing calls
no test coverage detected