nuxt-seomatic-meta icon indicating copy to clipboard operation
nuxt-seomatic-meta copied to clipboard

Getting undefined from GraphQL

Open peirix opened this issue 4 years ago • 2 comments

I tried setting this up, but for some reason all the requests come back with an undefined response. I rewrote the plugin to inject the function into the context so I could use it synchronously, and then it worked just fine.

inject('nuxtSeomaticMeta', (fullPath, id) => {
  //same code
});

So I'm wondering if there's something in the context of when the plugin is running? I've also logged out the actual query that's running, and putting that into a GraphQL client also returns the seomatic data.

peirix avatar Mar 19 '20 13:03 peirix