-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If using Apollo instead of Axios? #5
Comments
I'm sorry but I don’t have experience with Apollo/GraphQL. 😕 But essentially it should work similar to the axios setup (import the package of the „connection agent“, make the request, use the data“). However you have to use plain NPM packages |
Thanks for the quick response. I'm just not sure how to go about doing this within |
You are welcome! Yeah, that's a bit tricky. But there is likely a node apollo client you could use for that, right? 🤔 |
I'll look into that. What might be simpler for me as well, coming from a monolithic CMS background, is the completely different approach of creating a new layout for feeds. Though I'm not sure yet how much of the |
Well, you have to provide the feeds somehow 🤷♂️ With this module, nuxt will take over this job. Attaching feeds into your metadata is not covered but should be easy as you can control the URLs 👍 |
Right now this alternative approach to your feed module looks to me not possible in Nuxt, because the doctype is set in the the View, and only one View can be set it seems, ie, the one that shows the web pages, else no web site! See https://nuxtjs.org/guide/views/. So in order to output a feed without your module, a whole new instance of Nuxt would seem to be required! |
Here's an example:
But the problem is the feed doesnt show in a xml format version, and dc elements dont show. |
https://jsonfeed.org/ is a standard that more readers are handling. |
For those of us unable to figure it out, could you explain how we'd gain access to our data for feeds if using Apollo instead of Axios?
The text was updated successfully, but these errors were encountered: