Journal Mutation
createJournal(journalToCreate)
journalToCreate
⟹ Journal Input
⮩ Journal Response- Operation
- Variables
- Response
mutation CreateJournal($journal: JournalInput!) {
createJournal(journalToCreate: $journal) {
journal {
id
title
url
issn
domainName
createdAt
updatedAt
createdBy
policies {
title
firstYear
lastYear
policyType
isDataAvailabilityStatementPublished
isDataShared
isDataPeerReviewed
enforced
enforcedEvidence
}
}
errors {
field
message
}
}
}
{
"journal": {
"title": "Journal Title",
"url": "https://journalurl1234.com",
"issn": "23765992",
"domainName": "Domain Name",
"policies": {
"title": "Policy Title",
"firstYear": 2010,
"lastYear": 9999,
"policyType": "NUMBER_TWO",
"isDataAvailabilityStatementPublished": false,
"isDataShared": false,
"isDataPeerReviewed": false,
"enforced": "SOMETIMES",
"enforcedEvidence": "Enforced Evidnece String"
}
}
}
{
"data": {
"createJournal": {
"journal": {
"id": "6310bd599b51eef3ba27fe23",
"title": "Journal Title",
"url": "https://journalurl1234.com",
"issn": "23765992",
"domainName": "Domain Name",
"createdAt": "1662041433154",
"updatedAt": "1662041433154",
"createdBy": "6301eab3fb94b55057a9527d",
"policies": {
"title": "Policy Title",
"firstYear": 2010,
"lastYear": 9999,
"policyType": "NUMBER_TWO",
"isDataAvailabilityStatementPublished": false,
"isDataShared": false,
"isDataPeerReviewed": false,
"enforced": "SOMETIMES",
"enforcedEvidence": "Enforced Evidnece String"
}
},
"errors": null
}
}
}
updateJournal(issnToUpdate, newJournalDetails)
issnToUpdate
⟹ String
newJournalDetails
⟹ Journal Input
⮩ Journal Response- Operation
- Variables
- Response
mutation UpdateJournal($issnToUpdate: String!, $newJournalDetails: JournalInput!) {
updateJournal(issnToUpdate: $issnToUpdate, newJournalDetails: $newJournalDetails) {
journal {
id
title
url
issn
domainName
createdAt
updatedAt
createdBy
policies {
title
firstYear
lastYear
policyType
isDataAvailabilityStatementPublished
isDataShared
isDataPeerReviewed
enforced
enforcedEvidence
}
}
errors {
field
message
}
}
}
{
"issnToUpdate": "13985658",
"newJournalDetails": {
"title": "Journal Title",
"url": "https://journalurl1234.com",
"issn": "12345678",
"domainName": "Domain Name",
"policies": {
"title": "Policy Title",
"firstYear": 2010,
"lastYear": 9999,
"policyType": "NUMBER_TWO",
"isDataAvailabilityStatementPublished": false,
"isDataShared": false,
"isDataPeerReviewed": false,
"enforced": "SOMETIMES",
"enforcedEvidence": "Enforced Evidnece String"
}
}
}
{
"data": {
"updateJournal": {
"journal": {
"id": "630c8cbad1dd4047d11e36ae",
"title": "Journal Title",
"url": "https://journalurl1234.com",
"issn": "12345678",
"domainName": "Domain Name",
"createdAt": "1655582327800",
"updatedAt": "1662042015993",
"createdBy": "6301eab3fb94b55057a9527d",
"policies": {
"title": "Policy Title",
"firstYear": 2010,
"lastYear": 9999,
"policyType": "NUMBER_TWO",
"isDataAvailabilityStatementPublished": false,
"isDataShared": false,
"isDataPeerReviewed": false,
"enforced": "SOMETIMES",
"enforcedEvidence": "Enforced Evidnece String"
}
},
"errors": null
}
}
}
deleteJournal(issnToDelete)
issnToDelete
⟹ String
⮩ Boolean- Operation
- Variables
- Response
mutation DeleteJournal($issnToDelete: String!) {
deleteJournal(issnToDelete: $issnToDelete)
}
{
"issnToDelete": "19294164"
}
{
"data": {
"deleteJournal": true
}
}
addMockJournalData(numberOfJournals, userId)
numberOfJournals
⟹ Int
userId
⟹ String
⮩ Boolean- Operation
- Variables
- Response
mutation AddMockJournalData($numberOfJournals: Int!, $userId: String!) {
addMockJournalData(numberOfJournals: $numberOfJournals, userId: $userId)
}
{
"numberOfJournals": 2,
"userId": "630c9245b5cb663f7ba46afb"
}
{
"data": {
"addMockJournalData": true
}
}