Neatly Prepared Mustache

    @furystack/odata
    TypeScript icon, indicating that this package has built-in type declarations

    2.1.23 • Public • Published

    @furystack/odata

    odata v4 implementation for FuryStack. This package is in an early and experimental state. More info coming soon...

    Usage example

    You can use OData in a similar way:

    class MyEntityType {
      public id!: number
      public value!: string
    }
    
    const myInjector = new Injector()
    
    myInjector
      .useLogging()
      .useHttpApi()
      .useOdata('odata.svc', model =>
        model.addNameSpace('default', namespace =>
          namespace
            .setupEntities(e =>
              e.addEntityType({
                model: MyEntityType,
                primaryKey: 'id',
                properties: [{ property: 'id', type: EdmType.Int16 }, { property: 'value', type: EdmType.String }],
              }),
            )
            .setupCollections(collections => collections.addCollection({ model: MyEntityType, name: 'MyEntities' })),
        ),
      )
      .listenHttp()

    Install

    npm i @furystack/odata

    DownloadsWeekly Downloads

    2

    Version

    2.1.23

    License

    GPL-2.0

    Unpacked Size

    306 kB

    Total Files

    198

    Last publish

    Collaborators

    • gallayl