npm install
npm run start:dev
When the application is running, you can go to http://localhost:3000/graphql to access the GraphQL Playground. See here for more.
Go to localhost:3000/graphql and run this query
query subscriptions {
subscriptions {
id,
orders {
id
}
}
}
Notice that orders always comes back null.
Now try changing the @ObjectType('Subscription') to @ObjectType('SubscriptionModel'), and run the same query
Notice that it works.