cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

How do I exclude auto generated mutations?

q6qgs
Node Link

my schema:

const schema = makeAugmentedSchema({
    typeDefs,
    resolvers: resolveFunctions,
    config: {
        auth: {
            isAuthenticated: true,
            hasRole: true
        },
        mutation: {
            exclude: ["AddUserTickets","RemoveUserTickets","MergeUserTickets"]
        }
    }
});

The mutations still show up in graphql playground docs, and are functional..

3 REPLIES 3

MuddyBootsCode
Graph Steward

Have you tried "_AddUserTicketsPayload" in the documentation is says that you need to add the "type names" which are usually preceded by an underscore.

Yes, I've tried that also.. the mutations still show up 😞

MuddyBootsCode
Graph Steward

Seems like it also may be a relationship issue as well. Since you've got a to and from in the schema. You might need to do like the second half of the example in the docs and exclude those relationship types.