mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
- Had difficulty adding a relationship with one custom resolver, if id for comment was not passed in, the comment was not created, hard coding it in also wasn't a good solution
19 lines
332 B
JavaScript
19 lines
332 B
JavaScript
import gql from 'graphql-tag'
|
|
|
|
export default app => {
|
|
return {
|
|
AddPostComments: gql(`
|
|
mutation($from: _CommentInput!, $to: _PostInput!) {
|
|
AddPostComments(from: $from, to: $to) {
|
|
from {
|
|
id
|
|
}
|
|
to {
|
|
id
|
|
}
|
|
}
|
|
}
|
|
`)
|
|
}
|
|
}
|