Releases: yUnreal/wasp
Releases · yUnreal/wasp
v1.0.0
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 });
```