Yes, I use the interfaces folder to store interfaces that can be used across the API. The dto folder stores the specific GraphQL classes implementing those interfaces.
Regarding @pizza-api, this simply refers to some place in the API for demonstration purposes. I usually put a path in my tsconfig.json file to make these imports possible. So for example:
apps/pizza-order/tsconfig.json
{"extends":"../../tsconfig.json","compilerOptions":{"types":["node","jest"],"paths":{"@pizza-api/user/*":["apps/pizza-order/src/app/user/*"],// Other paths...}},"include":["**/*.ts"]}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Also there seems to be a
dtoandinterfacesfolder also? and what is this@pizza-api?Yes, I use the
interfacesfolder to store interfaces that can be used across the API. Thedtofolder stores the specific GraphQL classes implementing those interfaces.Regarding
@pizza-api, this simply refers to some place in the API for demonstration purposes. I usually put apathin mytsconfig.jsonfile to make these imports possible. So for example:apps/pizza-order/tsconfig.json