Skip to content

Releases: yUnreal/wasp

v1.0.0

26 May 13:07
Compare
Choose a tag to compare

Wasp

Publishing the wasp database library!

  • Schemas
  • Models
  • SchemaKeys
  • And many more.

Code Examples

interface Post {
   title: string;
   content: string;
   authorId: number;
}

const postSchema = new Schema<Post>({
   title: Schema.string(),
   content: Schema.string(),
   authorId: Schema.number().integer(),
});

const posts = new Model('posts', postSchema);

// And create some document!
posts.create({ ...data });
```