@squidcloud/backend
    Preparing search index...

    Function secureGraphQL

    • Decorator that marks a function for securing a GraphQL integration.

      The function should return a boolean or a Promise of a boolean indicating whether the action is allowed. The function takes a context object as a parameter. The context object contains information about the action.

      To read more about securing a GraphQL integration, see the documentation.

      Parameters

      • integrationId: string

      Returns ActionMethodDecorator<SecureGraphQLAction>