Create a collection via js sdk

If I wanted to create a collection from S3 on the js sdk, how can I do that?

1 Like

Hey @ashkevk1 ,

If you check here, it shows you how to create a collection: @rockset/client

rocksetClient.collections
  .createCollection('commons' /* name of workspace */, {
    name: 'MyFirstCollection' /* name of collection */,
    description:
      'I can write data to this collection' /* (optional) description */,
  })
  .then(console.log)
  .catch(console.error);

Please let me know if you have more questions!
n