Nuxt.js and Vuex (Store.js)

Hey, I was wondering is there’s a way of building actions in store.js (using Vuex) to commit the results from the DatoCMS API response (gql queries). I wanted to use Apollo instead, which is quite straight forward, however, I wanted to centralize all the queries to DatoCMS and store everything in the store.js bus. Google couldn’t find anything useful on how to utilize the “request” function provided in Nuxt.js + DatoCMS integration example.

Sorry if it’s a duplicate

hey @grzegorz.hadala I’m not sure, but are you looking for something like this: ?

1 Like