Function addIndex

  • Add index the existing Collection


    const index:Index = {
    path:'/city', // a top level field name 'city' and the path will be '/city'
    indexType: IndexType.StringKey
    }
    const result = await addIndex(collection, [index])

    Parameters

    Returns Promise<{
        result: MutationResult;
    }>

    the MutationResult

Generated using TypeDoc