graphql mutation return object or null
// With type-graph ql you have to set the schema type nullable (Boolean!) AND set the nullable option to true
@Mutation(returns => Boolean!, {nullable: true})
@Authorized()
async deployBranch(
@Arg('deploySpecificBranchRequest', { nullable: false }) deploySpecificBranchRequest: DeploySpecificBranchRequest,
@Ctx() ctx: Context
): Promise<void> {
if (ctx && ctx.userId) {
// some implementation in here
}
}