Can angular consume a decorated model with graphql functions

Viewed 30

I have a model in NestJs that decorated with Graphql functions

  @ObjectType()
  export class Companies {
    @Field(() => Int)
    public id: number;
  }

how can I share this model with angular

when refrence this model in angular I got this error :

webpack < 5 used to include polyfills for node.js core modules by default

I looking for best practices to shared models between backend and frontend, there is a clean way?

0 Answers
Related