mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-05 09:05:38 +00:00
- for unauthenticated - for authenticated admin Co-authored-by: Wolfgang Huss <wolle.huss@pjannto.com>
24 lines
347 B
JavaScript
24 lines
347 B
JavaScript
import uuid from 'uuid/v4'
|
|
|
|
export default function (params) {
|
|
const {
|
|
id = uuid(),
|
|
key,
|
|
type = 'crowdfunding',
|
|
status = 'permanent',
|
|
icon
|
|
} = params
|
|
|
|
return `
|
|
mutation {
|
|
CreateBadge(
|
|
id: "${id}",
|
|
key: "${key}",
|
|
type: ${type},
|
|
status: ${status},
|
|
icon: "${icon}"
|
|
) { id }
|
|
}
|
|
`
|
|
}
|