How to use @tanstack/vue-query with graphql codegen in ts? Because there is no typescript-vue-query plugin similar to typescript-react-query for vue

271 views Asked by At

Please suggest if possible in some way.

I have tried to change the import path from react-query to vue-query after typescript-react-query has done with it. But I didn't able to make it work (actually I don't know how).

myplugin.js - copied from codegen documentation

module.exports = {
  plugin(schema, documents, config, info) {
    const typesMap = schema.getTypeMap()
 
    return Object.keys(typesMap).join('\n')
  }
}
0

There are 0 answers