Actually, after further playing with
@withSubscription
I got it working… I realised when I added the tag, sometimes the schema update would fail with an unspecified error:
0] {"errors":[{"message":"resolving updateGQLSchema failed because rpc error: code = Unknown desc = error occurred updating GraphQL schema, please retry: Transaction has been aborted. Please retry","locations":[{"line":2,"column":5}]}],"data":{"updateGQLSchema":null},"extensions":{"tracing":{"version":1,"startTime":"2020-09-06T05:16:00.271019877Z","endTime":"2020-09-06T05:16:00.362229691Z","duration":91209824}}}
But after flipping the decorator on and off a few times, it eventually worked. Not sure what was wrong, I didn’t really do anything differently.
But at least now it works!