Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@yUnreal yUnreal released this 26 May 13:07

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 });
```