Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created December 8, 2021 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hkazanci93/8250c83e04af324513d39c969bcd0fd6 to your computer and use it in GitHub Desktop.
Save Hkazanci93/8250c83e04af324513d39c969bcd0fd6 to your computer and use it in GitHub Desktop.
class Album extends Entity {}
let schema = new Schema(Album, {
artist: { type: 'string' },
title: { type: 'string', textSearch: true },
year: { type: 'number' }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment