( query: string, dataset = LocationDataset.External, )
| 34 | `; |
| 35 | |
| 36 | export const getAutocompleteLocations = async ( |
| 37 | query: string, |
| 38 | dataset = LocationDataset.External, |
| 39 | ): Promise<TLocation[]> => { |
| 40 | const res = await gqlClient.request(AUTOCOMPLETE_LOCATION_QUERY, { |
| 41 | query, |
| 42 | dataset, |
| 43 | }); |
| 44 | return res.autocompleteLocation; |
| 45 | }; |
| 46 | |
| 47 | const AUTOCOMPLETE_COMPANY_QUERY = gql` |
| 48 | query AutocompleteCompany($query: String!, $limit: Int, $type: CompanyType) { |
no outgoing calls
no test coverage detected