2019-04-17 12:51:30 -03:00

22 lines
366 B
JavaScript

import faker from 'faker'
import uuid from 'uuid/v4'
export default function (params) {
const {
postId = 'p6',
content = [
faker.lorem.sentence(),
faker.lorem.sentence()
].join('. ')
} = params
return `
mutation {
CreateComment(
postId: "${postId}",
content: "${content}"
) { id, content }
}
`
}