Skip to content

reactiveTable error: fields option is required with server-side publications #485

@theavijitsarkar

Description

@theavijitsarkar

I tried to publish a basic collection and show it on the UI, but I get an error. I tried adding fields but that doesn't solve anything.

/client/dashboard.html

{{> reactiveTable collection="attendance_dashboard_table"}}

/server/publish.js

//Attempt 1
ReactiveTable.publish("attendance_dashboard_table", Attendance_dashboard);
//Attempt 2 
ReactiveTable.publish("attendance_dashboard_table", Attendance_dashboard, function(){
    return {owner: this.userId}
}, {fields: {owner:0}});

Error

reactiveTable error: fields option is required with server-side publications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions