Socket
Socket
Sign inDemoInstall

@sap/cds-reflect

Package Overview
Dependencies
Maintainers
3
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sap/cds-reflect

Reflection for CDS Models


Version published
Weekly downloads
631
decreased by-1.25%
Maintainers
3
Weekly downloads
 
Created
Source

cds.reflect

Provides core reflection for CDS models in CSN format.

Find the 'official' documentation here: https://github.wdf.sap.corp/pages/cdx/API#cds-reflect

Local usage in a project

npm i https://github.wdf.sap.corp/cdx/cds-reflect.git
const cds = require('@sap/cds-reflect')

// then use it as described in the above docs, e.g....
let model = cds.reflect ({
  namespace: 'foo.bar',
  definitions: {
    Foo: {kind:'entity', elements:{
      bar: {type:'cds.Association', target:'foo.bar.Bar'}
    }},
    Bar: {kind:'entity'},
  }
})
let { Foo, Bar } = m.exports

FAQs

Package last updated on 11 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc