Skip to content

Instantly share code, notes, and snippets.

View diegohaz's full-sized avatar

Haz diegohaz

View GitHub Profile
const schema = require("schm");
const userSchema = schema({
name: "Haz",
age: 27,
});
const schema = require("schm");
const userSchema = schema({
name: { type: String },
age: { type: Number },
});
const schema = require("schm");
const userSchema = schema({
name: String,
age: Number,
});