Member Junction
    Preparing search index...
    • Whether a GraphQL document's operation is a mutation.

      Used by the client transport to decide when a request may have written server-side, so the provider's RunView dedup-linger entries must be dropped (see ProviderBase.InvalidateRunViewDedupCache). A small lexical scan rather than a full parse(): it runs on every request. Only TOP-LEVEL tokens count — everything inside a selection set, argument list or list value is skipped, as are comments and string literals — so a field named query inside a leading fragment, or a keyword inside a string argument, can never be mistaken for the operation keyword. Fragment definitions are skipped; the first operation definition decides. An anonymous { ... } shorthand is a query.

      Parameters

      • document: string

        the GraphQL document text

      Returns boolean

      true when the (first) operation in the document is a mutation