/* * Mostly taken straight from express-graphql, so see their licence * (https://github.com/graphql/express-graphql/blob/master/LICENSE) */ // TODO: in the future, build the GraphiQL app on the server, so it does not // depend on any CDN and can be run offline. /* * Arguments: * * - endpointURL: the relative or absolute URL for the endpoint which GraphiQL will make queries to * - (optional) query: the GraphQL query to pre-fill in the GraphiQL UI * - (optional) variables: a JS object of variables to pre-fill in the GraphiQL UI * - (optional) operationName: the operationName to pre-fill in the GraphiQL UI * - (optional) result: the result of the query to pre-fill in the GraphiQL UI * - (optional) passHeader: a string that will be added to the header object. * For example "'Authorization': localStorage['Meteor.loginToken']" for meteor */ export type GraphiQLData = { endpointURL: string, query?: string, variables?: Object, operationName?: string, result?: Object, passHeader?: string }; // Current latest version of GraphiQL. const GRAPHIQL_VERSION = '0.7.1'; // Ensures string values are safe to be used within a