fixed gql fragment bug
This commit is contained in:
@@ -34,12 +34,12 @@ export default createStore(Vuex.Store, {
|
||||
// https://github.com/huybuidac/vuex-extensions
|
||||
mixins: {
|
||||
actions: {
|
||||
loadMaterialsGQL ({ dispatch }, { ids, gqlfragment, callBack, callBackArgs }) {
|
||||
loadMaterialsGQL ({ dispatch }, { ids, gqlfragment, gqlFragmentfields, callBack, callBackArgs }) {
|
||||
console.log('loadMaterialsGQL ids', ids)
|
||||
|
||||
const ast = gql`{
|
||||
materiaux(ids: [${ids}]) {
|
||||
...${gqlfragment}
|
||||
...${gqlFragmentfields}
|
||||
}
|
||||
}
|
||||
${gqlfragment}
|
||||
|
Reference in New Issue
Block a user