keel
keel copied to clipboard
feat: store InlineFiles automatically when passed through to modelAPI's create
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,
})
});