mutation CreateUser {
user(
id:"5a70ac62e1d8ff5cda8322a0",
name:"Svyatoslav Fedorovich",
email:"slavakpss@yandex.ru"
){
name,
folders {
title
}
}
}
| Parameter |
Type |
Description |
| ID |
String |
User's unique identifier. 24-character hexadecimal string |
| name |
String |
User's nickname |
| email |
String |
User's email address |
mutation CreateFolder{
folder(
id: "5a70ac62e1d8ff5cda8322a8",
title: "Noo",
ownerId: "5a70ac62e1d8ff5cda8322a0",
){
title,
id,
owner{
id,
name
}
}
}
| Parameter |
Type |
Description |
| ID |
String |
Folder's unique identifier. 24-character hexadecimal string |
| title |
String |
Folder's name |
| ownerId |
String |
User's id |
mutation CreateNote {
note(
id: "5a70ac62e1d8ff5cda8322a2",
authorId: "5a70ac62e1d8ff5cda8322a0",
folderId: "5a70ac62e1d8ff5cda8322a4", //Folder must exist in the DB
title: "How to work with API",
content: "{}"
) {
id,
title,
content,
dtCreate,
dtModify,
author {
id,
name,
email,
dtReg
}
}
}
| Parameter |
Type |
Description |
| ID |
String |
Note's unique identifier |
| authorId |
String |
Note's author |
| folderId |
String |
Note's folder |
| title |
String |
Note's public title |
| content |
String |
Note's content in the JSON-format |
query Sync {
user(
id: "5a70ac62e1d8ff5cda8322a0"
){
name,
folders {
id,
title,
owner {
name,
id
},
notes {
id,
title,
content,
dtCreate,
dtModify,
author {
id,
name,
email
},
isRemoved
}
}
}
}
| Parameter |
Type |
Description |
| ID |
String |
Users's unique identifier |
| foldersLimit |
Int |
Folder limit in response (optional) |
| foldersSkip |
Int |
Count of folders to skip(optional) |