Autoform + relationships + simpleschema

Hey Guys,
I’m just starting with meteor so please sorry if it’s a dumb question but I’m figuring out how is the correct way to create something like a ForeignKey with meteor that will be recognized by autoform.

I also trying to understand, why there’s so many packages from atmosphere deprecated or abandoned? I mean, most of the packages have modifications from 4 years ago, the people are leaving meteor?

I’m trying something like this:


MenuSchema = new SimpleSchema({
    title: {
        label: 'Título',
        type: String,
    }, 
});


PageSchema = new SimpleSchema({
    title: {
        label: 'Título',
        type: String,
    },
    content: {
        type: String,
        autoform: {
            afFieldInput: {
                type: 'tinyMCE',
                data: {
                    editor: '.mce-tinymce',
                    height: 300,
                    statusbar: false,
                    menubar: false,
                    external_plugins: {
                        uploadcare: '/js/uploadcare-tinymce/plugin.js',
                    },
                    uploadcare_public_key: '...',
                }
            }
        }
    },
}, {tracker: Tracker});

Hey,
Welcome to meteor, since I’m not very familiar with AutoForm I’d suggest that you try out Uniforms instead (for the reasons below)

I can think of two reasons why many packages are not maintained anymore

  • npm is fully supported by meteor (which wasn’t true until 1.3), so you can get almost anything you need with it.

  • Angular/React/Vue are very popular this days and many packages from 4 years ago are targeted mostly towards Blaze (which is less popular now) so it doesn’t make much sense to keep maintaining them…