Eylemler
Kurallar
Komutlar
function siranum(){
var sirano = JSON.parse(gql.Exec('{getGlobalSetting(name:"SiraNosu"){name,value}}')).data.getGlobalSetting.value;
if(sirano===null){var sirano = 0}
var newsirano = (Number(sirano) + Number(1));
var yenisirano = gql.Exec('mutation m {updateGlobalSetting(name:"SiraNosu",value:"'+newsirano+'"){name,value}}');
var yenisirano = JSON.parse(gql.Exec('{getGlobalSetting(name:"SiraNosu"){name,value}}')).data.getGlobalSetting.value;
return yenisirano
}
Yeni Sıra No.zip (1.2 KB)