question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adapter.getRootQueryName is not a function

See original GitHub issue

I use CustomAdapter

import DefaultAdapter from '@vuex-orm/plugin-graphql'

export class CustomAdapter extends DefaultAdapter {
  static getConnectionMode () {
    return 'plain'
  }
}

VuexORM.use(VuexORMGraphQL, {
  database,
  debug: process.env.NODE_ENV !== 'production',
  adapter: CustomAdapter
})

And get error r.adapter.getRootQueryName is not a function

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
johnrixcommented, Aug 30, 2019

Documentation needs updating… I stumbled upon the same issue as above.

https://vuex-orm.github.io/plugin-graphql/guide/adapters.html#basics

0reactions
alexandrmieecommented, Jun 27, 2019

Removed the “static” modifier from getConnection Mode, and now works

Read more comments on GitHub >

github_iconTop Results From Across the Web

adapter is not a function (EDIT: after 1st request) #2968 - GitHub
So if I send the POST and then the POST again, the 2nd time it fails. TypeError: adapter is not a function at...
Read more >
Axios error : TypeError: adapter is not a function - Stack Overflow
I'm making a web extension using webextension-polyfill and vuejs (axios for requesting). I needed to make requests from my content script ...
Read more >
Mocking Apex Wire Adapter - "emit is not a function"
The answer was that I needed to upgrade the @salesforce/sfdx-lwc-jest package version. This also meant upgrading the rest of the ...
Read more >
TypeError: (e.adapter || s.adapter) is not a function - Workers
I'm trying to run a request with axios & I get the following error when await axios.get(.... Has anyone encounter this problem too?...
Read more >
"builder.rimraf is not a function" upon build : r/sveltejs - Reddit
I'm getting the following error when trying to use the node adapter for a production build. > Using @sveltejs/adapter-node > builder.rimraf ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found