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
It works properly for primitive data types inputs. i.e if ids were to accept [String], it would generate proper type in the query as queryFilterBooks(variables: { ids: string[] }
The text was updated successfully, but these errors were encountered:
Scaffolding tool(
yarn mst-gql
) does not generate proper types for input variablesEx. the generated types for code
https://github.com/preetb123/mst-gql-app/blob/master/server/index.js#L79
are
https://github.com/preetb123/mst-gql-app/blob/master/src/models/RootStore.base.ts#L36
Here the variable
ids
should accept[BookInfo]
It works properly for primitive data types inputs. i.e if
ids
were to accept[String]
, it would generate proper type in the query asqueryFilterBooks(variables: { ids: string[] }
The text was updated successfully, but these errors were encountered: