Answers for "graphql mutation return object or null"

0

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
        }
    }
Posted by: Guest on January-18-2022

Code answers related to "graphql mutation return object or null"

Browse Popular Code Answers by Language