Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
types
Manage
Activity
Members
Labels
Plan
Issues
6
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pubsweet
types
Commits
2c009bf9
Commit
2c009bf9
authored
6 years ago
by
Audrey Hamelers
Browse files
Options
Downloads
Patches
Plain Diff
WIP: draft, initial graphql schema (needs Queries, Mutations)
parent
20e040fe
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
The shared data model as decided in Cambridge
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
schema.graphql
+186
-0
186 additions, 0 deletions
schema.graphql
with
186 additions
and
0 deletions
schema.graphql
0 → 100644
+
186
−
0
View file @
2c009bf9
interface
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
}
type
Organization
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
name
:
String
!
journals
:
[
Journal
]
}
type
Journal
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
journalTitle
:
String
!
manuscripts
:
[
Manuscript
]
meta
:
JournalMeta
}
type
JournalMeta
{
publisherName
:
String
}
type
Manuscript
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
manuscriptVersions
:
[
ManuscriptVersion
]
files
:
[
File
]
teams
:
[
Team
]
reviews
:
[
Review
]
status
:
String
formState
:
String
decision
:
String
meta
:
ManuscriptMeta
}
type
ManuscriptVersion
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
files
:
[
File
]
teams
:
[
Team
]
reviews
:
[
Review
]
status
:
String
formState
:
String
decision
:
String
meta
:
ManuscriptMeta
}
type
ManuscriptMeta
{
title
:
String
!
articleType
:
String
articleIds
:
[
ArticleId
]
abstract
:
String
subjects
:
[
String
]
history
:
[
MetaDate
]
publicationDates
:
[
MetaDate
]
notes
:
[
Note
]
}
type
ArticleId
{
pubIdType
:
String
id
:
String
}
type
MetaDate
{
type
:
String
date
:
DateTime
}
type
Note
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
notesType
:
String
content
:
String
}
type
File
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
type
:
String
label
:
String
filename
:
String
url
:
String
mimeType
:
String
size
:
Int
}
type
Review
implements
Object
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
comments
:
[
Comment
]
recommendation
:
String
open
:
Boolean
user
:
User
}
type
Comment
{
type
:
String
content
:
String
files
:
[
File
]
}
type
AuditLog
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
user
:
User
action
:
String
object
:
Object
objectType
:
String
}
type
Team
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
members
:
[
TeamMember
]
role
:
String
object
:
Object
objectType
:
String
}
type
TeamMember
{
user
:
User
status
:
String
alias
:
Alias
}
type
Alias
{
name
:
Name
email
:
Email
aff
:
String
}
type
User
{
id
:
ID
!
created
:
DateTime
!
updated
:
DateTime
identities
:
[
Identity
]
defaultIdentity
:
String
}
union
Identity
=
Local
|
External
type
Local
{
name
:
Name
email
:
Email
aff
:
String
}
type
External
{
identifier
:
String
email
:
Email
aff
:
String
identifier
:
String
}
type
Name
{
surname
:
String
givenNames
:
String
title
:
String
}
scalar
DateTime
scalar
Email
type
Query
{
object
(
id
:
ID
!):
Object
team
(
id
:
ID
!):
Team
user
(
id
:
ID
!):
User
log
(
for
:
Object
.
id
):
[
AuditLog
]!
}
type
Mutation
{
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment