Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add checkActionVisibility option #117

Merged
merged 1 commit into from
Oct 4, 2022
Merged

add checkActionVisibility option #117

merged 1 commit into from
Oct 4, 2022

Conversation

icebob
Copy link
Member

@icebob icebob commented Oct 4, 2022

The new checkActionVisibility: true mixin option enables to service to check the visibility property of actions and only generate graphql query/mutations if visibility: null or visibility: "published" (same as in moleculer-web).

Example

module.exports = {
    name: "api",

    mixins: [
        // Gateway
        ApiGateway,

        // GraphQL Apollo Server
        ApolloService({
            routeOptions: {},
            serverOptions: {},
    
            // Enable visibility check
            checkActionVisibility: true
        })
    ]
};

@icebob icebob merged commit cebac53 into master Oct 4, 2022
@icebob icebob deleted the check-action-visibility branch October 4, 2022 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant