Have ideas to improve npm?Join in the discussion! »

@builder.io/sdk
TypeScript icon, indicating that this package has built-in type declarations

1.1.20 • Public • Published

Builder Core

Getting Started

import { builder } from '@builder.io/sdk';
 
builder.init(YOUR_KEY);
 
// Optional custom targeting
builder.setUserAttributes({
  userIsLoggedIn: true,
  whateverKey: 'whatever value',
});
 
builder
  .get(YOUR_MODEL_NAME, {
    // Optional custom query
    query: {
      'data.customField.$gt': 100,
    },
  })
  .promise()
  .then(({ data }) => {
    // Do something with the data
  });
 
// Turn of cookies/tracking
builder.canTrack = false;

More docs coming soon!

If you have questions or comments don't hesitate to each out by creating an issue or emailing steve@builder.io

Keywords

none

Install

npm i @builder.io/[email protected]

Version

1.1.20

License

MIT

Unpacked Size

1.2 MB

Total Files

72

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar