keel icon indicating copy to clipboard operation
keel copied to clipboard

feat: store InlineFiles automatically when passed through to modelAPI's create

Open RutZap opened this issue 6 months ago • 0 comments

When creating models with the model api, InlineFiles will be automatically stored before inserting in the db.

export default CreateFromImage(async (ctx, inputs) => {
  const post = await models.post.create({
    image: inputs.image,
    description: inputs.description,
  })
});

RutZap avatar Aug 09 '24 13:08 RutZap