@squidcloud/backend
    Preparing search index...

    Function secureNativeQuery

    • A decorator that can be used to secure a native query. Native queries are not secured by default and must be explicitly secured using this decorator. The decorated function must return a boolean or a Promise of a boolean that indicates whether the query can be executed or not.

      The function accepts a context object as a parameter. The context object contains information about the query.

      To read more about securing a Native Query, see the documentation.

      Parameters

      • integrationId: string

        The database integration ID.

      Returns ActionMethodDecorator<SecureNativeQueryAction>

      A decorator function that can be used to secure a native query.