[TypedDocumentNode] No auto complete on variable
See original GitHub issueVersion : Beta 8
Can’t seem to get auto complete to work on variables
Works fine for returned data
export const UserDocument: DocumentNode<UserQuery, UserQueryVariables> = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"user"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"where"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UserWhereUniqueInput"}}},"directives":[]}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"user"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"where"},"value":{"kind":"Variable","name":{"kind":"Name","value":"where"}}}],"directives":[],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"email"},"arguments":[],"directives":[]},{"kind":"Field","name":{"kind":"Name","value":"id"},"arguments":[],"directives":[]}]}}]}}]};
Thanks for all your great work!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Don’t think that’s a
villus
issue. For the first one, I was avoiding this for a while but looks like a major upgrade is in order. The signatures need to be updated so it doesn’t confuse theDocumentNode
withQueryComposableOptions
.Basically all
useQuery
,useMutation
anduseSubscription
signatures will follow this scheme:query
variables
options
where applicableThat or just always an object, no second arguments. This will make the API more scalable
Will tag this as
rc.0
once done@logaretm Looks to be working great. Thanks a lot, much appreciated.