Hi, using Collection2, Autoform, Meteor Admin, some how I lost my thinking cap and I can’t remember how to tell my related Schema of tags to use a the non mongoID but my TagID instead.
@Tags = new Mongo.Collection('tags')
Schemas.Tag = new SimpleSchema(
tags:
type: [ Schemas.Tag]
tagId:
type: Number
name:
type: String
createdAt:
type: Date
autoValue: ->
if this.isInsert
new Date()
updatedAt:
type: Date
optional: true
autoValue: ->
if @isUpdate
new Date()
)
Tags.attachSchema(Schemas.Tag)