yarn add @pinelab/vendure-plugin-public-customer-groups
to install this plugin.
yarn add @pinelab/vendure-plugin-public-customer-groups
to install this plugin.
This plugin adds a custom field isPublic
to CustomerGroup
s, so that we can determine if a CustomerGroup
is publicly available. It also adds a GraphQL field Customer.customerGroups
that returns the public customerGroups to the Shop API.
Add the plugin to your vendure-config.ts
:
import { PublicCustomerGroupsPlugin } from '@pinelab/vendure-plugin-public-customer-groups';
plugins: [PublicCustomerGroupsPlugin];
And you're good to go with just that.