Questions tagged [simple-schema]

A simple, reactive schema validation package for Meteor. It's used by the Collection2 and AutoForm packages, but you can use it by itself, too.

258 questions
0
votes
1 answer

How to describe this intricated document structure using aldeed:simple-schema?

I need this document structure: lessons.insert({ name: 'some_name', audio_files: [ [ { paths: 'paths/to/file1', transcriptions: [ 'Transcript ..........1', 'Transcript ..........2', 'Transcript ..........3', …
Nazariy
  • 408
  • 3
  • 10
-1
votes
1 answer

meteor collections simpleschema, allowedvalues for array?

When i have created a schema: permissions: { type:[String], allowedValues: [ 'admin', 'normal', ], }, do the allowedValues checks apply for the elements inside the array?
Gobliins
  • 3,848
  • 16
  • 67
  • 122
-1
votes
1 answer

ReactiveVar returning as 0 value

In my /lib/collection.js SimpleSchema. I am using autoValue to return a reactive var value. The console log gives the right value, but the return value shows "0" Please help! autoValue: function() { console.log(ItemCloudIDVar.get()); a =…
Lucius Young
  • 3
  • 1
  • 3
1 2 3
17
18