Sanity Library Reference Docs
    Preparing search index...

    Variable insertAfterConst

    insertAfter: () => const

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

    Type declaration

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