File tree 3 files changed +3
-8
lines changed
3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 121
121
onEditQuery : onEditQuery ,
122
122
onEditVariables : onEditVariables ,
123
123
onEditOperationName : onEditOperationName ,
124
- plugins : [ explorerPlugin ]
124
+ plugins : [ explorerPlugin ] ,
125
+ shouldPersistHeaders : true ,
125
126
} ) ,
126
127
document . body
127
128
) ;
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export async function getObjectFromUrl(url: string): Promise<ObjectWithId> {
41
41
*/
42
42
export async function getObjectFromTypeAndId (
43
43
type : endPoints ,
44
- id : string ,
44
+ id : string | number ,
45
45
) : Promise < ObjectWithId > {
46
46
return await getObjectFromUrl ( `https://swapi.dev/api/${ type } /${ id } /` ) ;
47
47
}
Original file line number Diff line number Diff line change @@ -20,12 +20,6 @@ import StarshipType from './types/starship.js';
20
20
import VehicleType from './types/vehicle.js' ;
21
21
import { endPoints } from '../types.js' ;
22
22
23
- // export function swapiTypeToGraphQLType(swapiType: 'films'): typeof FilmType;
24
- // export function swapiTypeToGraphQLType(swapiType: 'people'): typeof PersonType;
25
- // export function swapiTypeToGraphQLType(swapiType: 'planets'): typeof PlanetType;
26
- // export function swapiTypeToGraphQLType(swapiType: 'species'): typeof SpeciesType;
27
- // export function swapiTypeToGraphQLType(swapiType: 'starships'): typeof StarshipType;
28
- // export function swapiTypeToGraphQLType(swapiType: 'vehicles'): typeof VehicleType;
29
23
/**
30
24
* Given a "type" in SWAPI, returns the corresponding GraphQL type.
31
25
*/
You can’t perform that action at this time.
0 commit comments