Fermer

août 8, 2018

Comment lier la grille de l'interface utilisateur Kendo à une API GraphQL


data: function (modèle) {

return {

requête: ADD_PRODUCT_QUERY,

variables: modèle

};

}

}, [19659006] parameterMap: function (options, operation) {

return kendo.stringify (options);

}

},

schéma: {

data: function (réponse) {

var data = response.data; 19659006]

(data.products) {

retourner data.products;

} else si (data.AddProduct) {

retourner data.AddProduct;

} sinon si (data.UpdateProduct) {

return data.UpdateProduct;

else if (data.DeleteProduct) {

return data.DeleteProduct;

}

},

modèle: {

id: "ProductID"

champs: {

ProductID: {type: "string" modifiable: false },

ProductName: { type: "string" },

UnitPrice: {type: "number" },

UnitsInStock: {type: "number" }

}

}

}) [19659201]




Source link