export const DATA_FIELD = `
    {
        slug
        description
        title
        items
        createdOn
        createdBy {
            id
            displayName
            type
        }
    }
` ; export const ERROR_FIELD = `
    {
        code
        data
        message
    }
` ; export const CREATE_MENU = `
    mutation CreateMenu($data: PbMenuInput!) {
        pageBuilder {
            createMenu(data: $data) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const UPDATE_MENU = `
    mutation UpdateMenu($slug: String!, $data: PbMenuInput!) {
        pageBuilder {
            updateMenu(slug: $slug, data: $data) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const LIST_MENUS = `
    query ListMenus {
        pageBuilder {
            listMenus {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const GET_MENU = `
    query GetMenu($slug: String!) {
        pageBuilder {
            getMenu(slug: $slug) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const GET_PUBLIC_MENU = `
    query GetPublicMenu($slug: String!) {
        pageBuilder {
            getPublicMenu(slug: $slug) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ; export const DELETE_MENU = `
    mutation DeleteMenu($slug: String!) {
        pageBuilder {
            deleteMenu(slug: $slug) {
                data ${ DATA_FIELD }
                error ${ ERROR_FIELD }
            }
        }
    }
` ;