The typescript type definitions for the query method force the params parameter to be a Map<any, any>, but the actual javascript function expects a dumb { [ key: string ]: any }.
Passing a Map causes the query to fail due to 'missing parameters', as expected.
Passing a normal JS object works, but requires typescript hacking like graph.query(query, params as unknown as Map<any, any>).
Am I missing something here or is this an actual error?
The typescript type definitions for the query method force the
paramsparameter to be aMap<any, any>, but the actual javascript function expects a dumb{ [ key: string ]: any }.Passing a
Mapcauses the query to fail due to 'missing parameters', as expected.Passing a normal JS object works, but requires typescript hacking like
graph.query(query, params as unknown as Map<any, any>).Am I missing something here or is this an actual error?