You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
The typescript type definitions for the query method force the
params
parameter to be aMap<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 text was updated successfully, but these errors were encountered: