Mutation
mutation UploadUserDocument($file: File!, $name: String!, $type: String!, $userId: String!) {
uploadUserDocument(file: $file, name: $name, type: $type, userId: $userId) {
id
name
type
uploadedAt
url
}
}Variables
{
"file": "value",
"name": "string",
"type": "string",
"userId": "string"
}Response
{
"data": {
"uploadUserDocument": {
"id": "string",
"name": "string",
"type": "string",
"uploadedAt": "value",
"url": "string"
}
}
}Mutations
uploadUserDocument
Attaches a document to a user’s profile and returns it.
MUTATION
uploadUserDocument(file: File!, name: String!, type: String!, userId: String!): UserDocument!Arguments
file
File!
required
The document file.
name
String!
required
Name of the document.
type
String!
required
One of 'education' (Education), 'experience' (Experience) or 'licenses' (Licenses).
userId
String!
required
Id of the user the document belongs to.
Returns
id
String!
Id of the document.
name
String!
Name of the document.
type
String!
One of 'education' (Education), 'experience' (Experience) or 'licenses' (Licenses).
uploadedAt
DateTime!
When the document was uploaded.
url
String!
Path that downloads the file.
Mutation
mutation UploadUserDocument($file: File!, $name: String!, $type: String!, $userId: String!) {
uploadUserDocument(file: $file, name: $name, type: $type, userId: $userId) {
id
name
type
uploadedAt
url
}
}Variables
{
"file": "value",
"name": "string",
"type": "string",
"userId": "string"
}Response
{
"data": {
"uploadUserDocument": {
"id": "string",
"name": "string",
"type": "string",
"uploadedAt": "value",
"url": "string"
}
}
}