-
Hello, I took a quick peek at this library and have a question. After I followed the installation and got the cli installed and ran the codegen script (my introspection is a Hasura backend). I used a basic query: const query = useQuery()
query.//=> is here supposed to be code completion based on my schema? In my IDE I had the impression that I would receive code completion for the const query based on my schema. Is that supposed to be the case? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
yes, that should've worked, you should be able to inspect the types behind useQuery too |
Beta Was this translation helpful? Give feedback.
-
I receive auto completion but the query is only
inside of the queryFetcher of index.ts I add a console log but that is never fetched. Also the autogenerated file index.ts seems to require Where is the place to add authentication tokens for the backend api? I thought I'd place it in queryFetcher but so far that function is not called. |
Beta Was this translation helpful? Give feedback.
I receive auto completion but the query is only
inside of the queryFetcher of index.ts I add a console log but that is never fetched. Also the autogenerated file index.ts seems to require
@gqty/react
which is not mentioned in the docs yet.Where is the place to add authentication tokens for the backend api? I thought I'd place it in queryFetcher but so far that function is not called.