vulcan-docs icon indicating copy to clipboard operation
vulcan-docs copied to clipboard

Add documentation about callbacks

Open Neobii opened this issue 7 years ago • 1 comments

When you add callbacks, it's unclear that the naming convention for collection hooks are being supplied in lower case which is different than the naming convention of the Type definition which is uppercase.

ie:

modifier = runCallbacks({ name: `movie.update.before`, iterator: data, properties: { document, currentUser }});

const Movies = createCollection({
  typeName: "Movie",

  schema,

  resolvers,

  mutations
});

Neobii avatar Dec 10 '18 07:12 Neobii

Good point. I think ultimately we'll make callback names case-insensitive to avoid this issue altogether.

SachaG avatar Dec 15 '18 09:12 SachaG