Sanity Library Reference Docs
    Preparing search index...

    Variable AnyArrayConst

    AnyArray: any

    Creates an insert operation that inserts the provided items after the provided index or reference item.

    The items to insert.

    The index or reference item to insert after.

    An insert operation after the provided index or reference item. https://www.sanity.io/docs/http-patches#0SQmPlb6

    const insertFooAfterIndex3 = insertAfter('foo', 3)
    const insertObjectAfterKey = insertAfter({name: 'foo'}, {_key: 'xyz'}]