kinetex - v1.0.0-rc.1
    Preparing search index...

    Function detectOperationType

    • Determine the operation type from a raw GraphQL query string. Strips comments, then matches the first operation keyword.

      Parameters

      • query: string

        Raw GraphQL query/mutation/subscription string

      Returns GraphQLOperationType

      "query", "mutation", or "subscription"