Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

extractData

  • A middleware module that extracts the data object out of the HTTP response from the network adapter.

    const connector = createConnector(...)
    const api = connector("/movies/")
    api.read()
    
    {
      headers: {...},
      data: [{ ... }, { ... }],
      ...
    }
    
    const newConnector = connector.apply(extractData)
    const api = newConnector("/movies/")
    api.read()
    
    [
      { ... },
      { ... }
    ]
    

    Parameters

    Returns CRUUDFns

url