with-new-config-object-reference.ts 585 B

1234567891011121314151617181920212223
  1. import { Query, Resolver } from '@nestjs/graphql';
  2. import { VendurePlugin } from '@vendure/core';
  3. /**
  4. * https://github.com/vendure-ecommerce/vendure/issues/2906
  5. */
  6. @VendurePlugin({
  7. configuration: config => {
  8. return {
  9. ...config,
  10. customFields: {
  11. ...config.customFields,
  12. Customer: [
  13. {
  14. name: 'testField',
  15. type: 'string',
  16. },
  17. ],
  18. },
  19. };
  20. },
  21. })
  22. export class WithNewConfigObjectReferencePlugin {}