Is there a way to limit the amount of relationship items being returned and filter them by created time, to lets say return only 7 days of worth of items?
relationship one to many limit, filter.
You can't limit them at the moment
@Steven i've noticed interesting thing, if i upload an jpg/png, and request the transformed version, i get a webp just fine, but if i upload webp and request transformed version, i don't get a proper image back. html
<FileDropzone name="files" bind:files on:change={onChangeHandler}>
<svelte:fragment slot="lead"><i class="fa-solid fa-file-arrow-up text-4xl"></i></svelte:fragment>
<svelte:fragment slot="message">Drag & Drop your image here</svelte:fragment>
<svelte:fragment slot="meta">{image_name}</svelte:fragment>
</FileDropzone>
{#if image !== ""}
<img src="{image}" alt="test">
{/if}
```js
uploadArticleImage: async (file: any) => {
const upload_image = await storage.createFile('images', ID.unique(), file);
return storage.getFilePreview(
'images',
upload_image.$id,
900, 500,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
undefined,
'webp'
)
.toString();
},```
this doesn't seem related to your original post. it would be best to create a separate post
[CLOSED] relationship one to many limit, filter.
Recommended threads
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...