Nitric logo

Topics

topic()

Creates a new Topic.

import { topic } from '@nitric/sdk';

const updates = topic('updates');

Parameters


name required string

The name of the topic to create.

Examples

Create a new topic

import { topic } from '@nitric/sdk';

const updates = topic('updates');

See also

Previous
collection.doc.collection()