const DATA_FIELD = `
    {
        id
        name
        slug
        description
        icon
        createdOn
        savedOn
        createdBy {
            id
            displayName
            type
        }
    }
` ; const ERROR_FIELD = `
    {
        code
        data
        message
    }
` ; export const CREATE_CONTENT_MODEL_GROUP_MUTATION = `
    mutation CreateContentModelGroupMutation($data: CmsContentModelGroupInput!) {
        createContentModelGroup(data: $data) {
            data ${ DATA_FIELD }
            error ${ ERROR_FIELD }
        }
    }
` ; export const GET_CONTENT_MODEL_GROUP_QUERY = `
    query GetContentModelGroupQuery($id: ID!) {
        getContentModelGroup(id: $id) {
            data ${ DATA_FIELD }
            error ${ ERROR_FIELD }
        }
    }
` ; export const UPDATE_CONTENT_MODEL_GROUP_MUTATION = `
    mutation UpdateContentModelGroupMutation($id: ID!, $data: CmsContentModelGroupInput!) {
        updateContentModelGroup(id: $id, data: $data) {
            data ${ DATA_FIELD }
            error ${ ERROR_FIELD }
        }
    }
` ; export const DELETE_CONTENT_MODEL_GROUP_MUTATION = `
    mutation DeleteContentModelGroupMutation($id: ID!) {
        deleteContentModelGroup(id: $id) {
            data
            error ${ ERROR_FIELD }
        }
    }
` ; export const LIST_CONTENT_MODEL_GROUP_QUERY = `
    query ListContentModelGroupsQuery {
        listContentModelGroups {
            data ${ DATA_FIELD }
            error ${ ERROR_FIELD }
        }
    }
` ;