Add to the post context object


#1

Hi all,

I’d like to do add a custom property to the post object.

I tried editing the schema (server/data/schema/schema.js) and adding a property to the posts object there e.g.

my_prop: {type: ‘bool’, nullable: true, defaultTo: false},
I don’t see this property present when I log the posts object in terminal. (I did restart my server after making the change)


#2

This is a duplicate of Adding a property to the post context object


#3