Skip to content
Snippets Groups Projects
Commit 8eace60d authored by Tamlyn Rhodes's avatar Tamlyn Rhodes
Browse files

Merge branch 'manuscript-model' into 'master'

feat(data): minimal config for manuscript data model

See merge request !21
parents b52670cb 1817ef66
No related branches found
No related tags found
1 merge request!21feat(data): minimal config for manuscript data model
Pipeline #6006 passed with stages
in 1 minute and 24 seconds
......@@ -15,6 +15,28 @@ module.exports = {
port: 3000,
logger,
uploads: 'uploads',
typeDefs: `
type Manuscript {
id: ID!
title: String!
source: String!
metadata: SubmissionMeta!
}
type SubmissionMeta {
author: Author
correspondingAuthor: Author
# more submission form stuff goes in here
}
type Author {
firstName: String
lastName: String
email: String
institution: String
}
`,
},
'pubsweet-client': {
API_ENDPOINT: '/api',
......
const Joi = require('joi')
module.exports = {
fragment: [
{
fragmentType: Joi.valid('manuscript').required(),
title: Joi.string().required(),
source: Joi.string(),
metadata: Joi.any(),
},
],
user: {
// make these core fields optional
email: Joi.string().email(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment