You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I tried to ask my question over at the Nuxt Discord server without much luck.
I have two collection types that has relations with eachother:
Products
Name
slug
Subitems
name
description
Each Product can have any number of SubItems. Just like SubItems can belong to any number of Products.
While querying for SubItems, I was wondering how I could search for SubItems that belongs to a certain product using the product slug to identify the product.
Hey,
I tried to ask my question over at the Nuxt Discord server without much luck.
I have two collection types that has relations with eachother:
Each Product can have any number of SubItems. Just like SubItems can belong to any number of Products.
While querying for SubItems, I was wondering how I could search for SubItems that belongs to a certain product using the product slug to identify the product.
const product = await findOne("products", route.params.id);
const subItems = await find("subItems", { filter: someCodeThatTellsMeHowToFindSubItemsUsingTheProductSlug. });
The text was updated successfully, but these errors were encountered: